/* ==========================================================================
   ctroiteli.ru — страница «Объекты» (/obekty/)
   Все правила строго под .obekty-page (префикс страницы, чужие страницы не
   затрагиваются). Дизайн — по макету-эталону objects/mockup/index.html:
   графит + беж, акценты #4A7C9E и #EE5A0F, шрифт Onest, радиусы 2 px,
   без теней и градиентов.
   ========================================================================== */

.obekty-page {
	--ob-graphite: #1A1F26;
	--ob-graphite-2: #2A2F35;
	--ob-ink-soft: #5B6472;
	--ob-blue: #4A7C9E;
	--ob-orange: #EE5A0F;
	--ob-beige-page: #ECE8E1;
	--ob-beige-band: #F2EFE9;
	--ob-ivory: #F5F1E6;
	--ob-beige-deep: #E8E2D9;
	--ob-line: rgba(26, 31, 38, .16);
	--ob-line-light: rgba(255, 255, 255, .18);
	--ob-font: 'Onest', 'Segoe UI', Arial, sans-serif;

	font-family: var(--ob-font);
	color: var(--ob-graphite);
	background: var(--ob-beige-page);
	padding-bottom: 0;
	overflow-x: hidden;
}

.obekty-page *,
.obekty-page *::before,
.obekty-page *::after { box-sizing: border-box; }

.obekty-page h1,
.obekty-page h2,
.obekty-page h3,
.obekty-page p,
.obekty-page dl,
.obekty-page dd,
.obekty-page ul { margin: 0; }

.obekty-page a { color: inherit; }

/* ---------- кнопки (свои, не тема .btn) ---------- */
.obekty-page .ob-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 44px;
	padding: 0 20px;
	background: var(--ob-orange);
	color: #fff;
	text-decoration: none;
	font-family: var(--ob-font);
	font-size: 14px;
	font-weight: 600;
	border: 1px solid var(--ob-orange);
	border-radius: 2px;
	cursor: pointer;
	transition: background .18s ease, color .18s ease;
}
.obekty-page .ob-btn:hover { background: #D24E0B; border-color: #D24E0B; color: #fff; }
.obekty-page .ob-btn--ghost {
	background: transparent;
	color: var(--ob-graphite);
	border-color: var(--ob-graphite);
}
.obekty-page .ob-btn--ghost:hover { background: var(--ob-graphite); color: #fff; }

/* ---------- херо + карта ---------- */
.obekty-page .ob-hero { padding: 40px 0 0; }
.obekty-page .ob-hero__top {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 40px;
	margin-bottom: 22px;
}
.obekty-page .ob-kicker {
	font-size: 12px;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--ob-ink-soft);
}
.obekty-page h1 {
	font-size: clamp(27px, 3.4vw, 44px);
	line-height: 1.08;
	letter-spacing: -.02em;
	margin: 10px 0 0;
	max-width: 760px;
	font-weight: 600;
}
.obekty-page .ob-hero__lead {
	max-width: 360px;
	font-size: 15px;
	line-height: 1.55;
	color: var(--ob-ink-soft);
	margin: 0 0 6px;
}
.obekty-page .ob-hero__stats { display: flex; gap: 34px; margin: 18px 0 22px; flex-wrap: wrap; }
.obekty-page .ob-hero__stat b {
	display: block;
	font-size: 26px;
	font-weight: 600;
	letter-spacing: -.02em;
}
.obekty-page .ob-hero__stat span { font-size: 13px; color: var(--ob-ink-soft); }

.obekty-page .ob-map-shell {
	position: relative;
	border: 1px solid var(--ob-line);
	border-radius: 2px;
	background: var(--ob-beige-band);
	overflow: hidden;
}
.obekty-page #ob-map {
	height: clamp(480px, 70vh, 720px);
	width: 100%;
	background: #DDE3E4;
	z-index: 0;
}

/* ---------- фильтры поверх карты ---------- */
.obekty-page .ob-filters {
	position: absolute;
	z-index: 500;
	left: 16px;
	top: 16px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	max-width: calc(100% - 32px);
}
.obekty-page .ob-filters__row { display: flex; gap: 6px; flex-wrap: wrap; }
.obekty-page .ob-chip {
	border: 1px solid var(--ob-line);
	background: rgba(255, 255, 255, .94);
	color: var(--ob-graphite);
	font-family: var(--ob-font);
	font-size: 13px;
	line-height: 1.2;
	padding: 8px 13px;
	border-radius: 2px;
	cursor: pointer;
	transition: background .15s ease, color .15s ease;
}
.obekty-page .ob-chip:hover { background: #fff; }
.obekty-page .ob-chip.is-on {
	background: var(--ob-graphite);
	color: #fff;
	border-color: var(--ob-graphite);
}
.obekty-page .ob-count {
	font-size: 12px;
	letter-spacing: .04em;
	color: var(--ob-ink-soft);
	background: rgba(255, 255, 255, .94);
	border: 1px solid var(--ob-line);
	padding: 7px 11px;
	align-self: flex-start;
}

.obekty-page .ob-legend {
	position: absolute;
	z-index: 500;
	right: 16px;
	bottom: 16px;
	background: rgba(255, 255, 255, .94);
	border: 1px solid var(--ob-line);
	padding: 10px 12px;
	font-size: 12px;
	line-height: 1.7;
	color: var(--ob-ink-soft);
}
.obekty-page .ob-legend i {
	display: inline-block;
	width: 8px;
	height: 8px;
	margin-right: 7px;
	border-radius: 50%;
}
.obekty-page .ob-hint {
	position: absolute;
	left: 16px;
	bottom: 16px;
	z-index: 500;
	background: rgba(255, 255, 255, .94);
	border: 1px solid var(--ob-line);
	padding: 8px 12px;
	font-size: 12px;
	color: var(--ob-ink-soft);
}

/* метка объекта (divIcon) */
.obekty-page .ob-pin { background: transparent; border: 0; }
.obekty-page .ob-pin span {
	display: block;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	box-shadow: 0 0 0 3px rgba(255, 255, 255, .9), 0 0 0 4px rgba(26, 31, 38, .25);
}
.obekty-page .ob-cluster {
	background: rgba(26, 31, 38, .9);
	color: #fff;
	font-family: var(--ob-font);
	font-size: 12px;
	font-weight: 600;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	box-shadow: 0 0 0 3px rgba(255, 255, 255, .85);
}

/* ---------- панель объекта ---------- */
.obekty-page .ob-drawer {
	position: fixed;
	z-index: 1200;
	top: 0;
	right: 0;
	height: 100%;
	width: min(460px, 100%);
	background: var(--ob-beige-page);
	border-left: 1px solid var(--ob-line);
	transform: translateX(102%);
	transition: transform .22s ease;
	display: flex;
	flex-direction: column;
	overflow: hidden;
}
.obekty-page .ob-drawer.is-open { transform: translateX(0); }
.obekty-page .ob-drawer__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 20px;
	border-bottom: 1px solid var(--ob-line);
	flex-shrink: 0;
}
.obekty-page .ob-drawer__head b {
	font-size: 13px;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--ob-ink-soft);
	font-weight: 500;
}
.obekty-page .ob-drawer__close {
	border: 0;
	background: transparent;
	font-family: var(--ob-font);
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
	color: var(--ob-graphite);
}
.obekty-page .ob-drawer__scroll { overflow-y: auto; }
.obekty-page .ob-drawer__ph {
	aspect-ratio: 16 / 10;
	border-bottom: 1px solid var(--ob-line);
	background: repeating-linear-gradient(135deg, rgba(26, 31, 38, .045) 0 10px, transparent 10px 20px);
	display: flex;
	align-items: flex-end;
	padding: 14px;
	overflow: hidden;
}
.obekty-page .ob-drawer__ph img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.obekty-page .ob-drawer__ph span { font-size: 12px; letter-spacing: .06em; color: var(--ob-ink-soft); }
.obekty-page .ob-drawer__body { padding: 22px 20px 28px; }
.obekty-page .ob-drawer__kicker {
	font-size: 11px;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--ob-blue);
	margin-bottom: 8px;
}
.obekty-page .ob-drawer__title {
	font-size: 24px;
	line-height: 1.15;
	letter-spacing: -.02em;
	margin: 0 0 6px;
	font-weight: 600;
}
.obekty-page .ob-drawer__addr { font-size: 14px; color: var(--ob-ink-soft); margin-bottom: 16px; }
.obekty-page .ob-drawer__works { font-size: 15px; line-height: 1.6; margin: 0 0 20px; }
.obekty-page .ob-drawer__meta {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	margin: 0 0 22px;
	padding: 16px 0 0;
	border-top: 1px solid var(--ob-line);
}
.obekty-page .ob-drawer__meta dt {
	font-size: 11px;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--ob-ink-soft);
	margin-bottom: 4px;
}
.obekty-page .ob-drawer__meta dd { margin: 0; font-size: 15px; font-weight: 500; }
.obekty-page .ob-drawer__cta { display: flex; gap: 10px; flex-wrap: wrap; }
.obekty-page .ob-drawer__cta .ob-btn { flex: 1 1 auto; }

/* ---------- цифры ---------- */
.obekty-page .ob-numbers { background: var(--ob-graphite); color: #F2EFE9; margin-top: 28px; }
.obekty-page .ob-numbers__in {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 28px;
	padding: 40px 0;
}
.obekty-page .ob-numbers b {
	display: block;
	font-size: clamp(26px, 3vw, 38px);
	font-weight: 600;
	letter-spacing: -.02em;
}
.obekty-page .ob-numbers span { font-size: 13px; color: rgba(242, 239, 233, .66); }

/* ---------- как работаем ---------- */
.obekty-page .ob-how { padding: 56px 0; background: var(--ob-beige-band); }
.obekty-page .ob-how h2,
.obekty-page .ob-faq h2,
.obekty-page .ob-links h2,
.obekty-page .ob-lead h2 {
	font-size: clamp(23px, 2.6vw, 32px);
	line-height: 1.15;
	letter-spacing: -.02em;
	font-weight: 600;
}
.obekty-page .ob-how h2 { margin-top: 10px; }
.obekty-page .ob-how__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 28px;
	margin-top: 26px;
}
.obekty-page .ob-how__item { border-top: 2px solid var(--ob-graphite); padding-top: 14px; }
.obekty-page .ob-how__item b { display: block; font-size: 16px; margin-bottom: 6px; font-weight: 600; }
.obekty-page .ob-how__item p { font-size: 14px; line-height: 1.6; color: var(--ob-ink-soft); }

/* ---------- FAQ ---------- */
.obekty-page .ob-faq { padding: 56px 0; }
.obekty-page .ob-faq h2 { margin: 10px 0 18px; }
.obekty-page .ob-faq details { border-bottom: 1px solid var(--ob-line); padding: 16px 0; }
.obekty-page .ob-faq summary {
	cursor: pointer;
	font-size: 17px;
	font-weight: 500;
	list-style: none;
	display: flex;
	justify-content: space-between;
	gap: 18px;
}
.obekty-page .ob-faq summary::-webkit-details-marker { display: none; }
.obekty-page .ob-faq summary::after { content: '+'; color: var(--ob-orange); font-weight: 600; }
.obekty-page .ob-faq details[open] summary::after { content: '−'; }
.obekty-page .ob-faq p {
	margin: 12px 0 0;
	font-size: 15px;
	line-height: 1.65;
	color: var(--ob-ink-soft);
	max-width: 72ch;
}

/* ---------- форма ---------- */
.obekty-page .ob-lead { background: var(--ob-graphite-2); color: #F2EFE9; padding: 52px 0; }
.obekty-page .ob-lead__in {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 48px;
	align-items: start;
}
.obekty-page .ob-lead h2 { color: #fff; }
.obekty-page .ob-lead p {
	color: rgba(242, 239, 233, .7);
	font-size: 15px;
	line-height: 1.6;
	margin-top: 10px;
}
.obekty-page .ob-lead__calc { margin-top: 20px; }
.obekty-page .ob-lead form { display: grid; gap: 10px; }
.obekty-page .ob-lead input[type="text"],
.obekty-page .ob-lead input[type="tel"] {
	height: 48px;
	padding: 0 14px;
	border: 1px solid var(--ob-line-light);
	background: rgba(255, 255, 255, .06);
	color: #F2EFE9;
	font-family: var(--ob-font);
	font-size: 15px;
	border-radius: 2px;
	width: 100%;
}
.obekty-page .ob-lead input::placeholder { color: rgba(242, 239, 233, .5); }
.obekty-page .ob-lead input:focus { outline: none; border-color: rgba(242, 239, 233, .6); }
.obekty-page .ob-lead input.error { border-color: #FF8A5B; }
.obekty-page .ob-lead .ob-btn { width: 100%; height: 50px; }
.obekty-page .ob-lead__note { font-size: 12.5px; color: rgba(242, 239, 233, .55); margin-top: 2px; }
.obekty-page .ob-lead__note a { text-decoration: underline; }
.obekty-page .ob-lead__msg { font-size: 14px; font-weight: 600; color: #9EC1DA; display: none; }
.obekty-page .ob-lead__msg.is-shown { display: block; }
.obekty-page .ob-lead__msg.is-error { color: #FFB199; }
.obekty-page .ob-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	opacity: 0;
	pointer-events: none;
}

/* ---------- ссылки ---------- */
.obekty-page .ob-links { padding: 48px 0 64px; }
.obekty-page .ob-links__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1px;
	background: var(--ob-line);
	margin-top: 22px;
}
.obekty-page .ob-links__item {
	background: var(--ob-beige-page);
	padding: 20px;
	text-decoration: none;
	transition: background .15s ease;
}
.obekty-page .ob-links__item:hover { background: var(--ob-ivory); }
.obekty-page .ob-links__item b { display: block; font-size: 16px; margin-bottom: 6px; font-weight: 600; }
.obekty-page .ob-links__item span { font-size: 13px; color: var(--ob-ink-soft); }

/* ---------- планшет / мобильный ---------- */
@media (max-width: 1024px) {
	.obekty-page .ob-how__grid { grid-template-columns: 1fr 1fr; }
	.obekty-page .ob-numbers__in { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
	.obekty-page .ob-drawer {
		top: auto;
		bottom: 0;
		height: min(78vh, 640px);
		width: 100%;
		border-left: 0;
		border-top: 1px solid var(--ob-line);
		transform: translateY(102%);
	}
	.obekty-page .ob-drawer.is-open { transform: translateY(0); }
	.obekty-page .ob-hint { display: none; }
}

@media (max-width: 768px) {
	.obekty-page .ob-hero { padding-top: 26px; }
	.obekty-page .ob-hero__top { flex-direction: column; align-items: flex-start; gap: 14px; }
	.obekty-page .ob-hero__stats { gap: 22px; }
	.obekty-page .ob-hero__lead { max-width: none; }
	.obekty-page #ob-map { height: clamp(420px, 62vh, 560px); }
	.obekty-page .ob-filters { left: 10px; top: 10px; max-width: calc(100% - 20px); }
	.obekty-page .ob-chip { font-size: 12px; padding: 7px 10px; }
	.obekty-page .ob-legend { right: 10px; bottom: 10px; font-size: 11px; padding: 8px 10px; }
	.obekty-page .ob-lead__in { grid-template-columns: 1fr; gap: 26px; }
	.obekty-page .ob-how { padding: 40px 0; }
	.obekty-page .ob-how__grid { grid-template-columns: 1fr; gap: 18px; }
	.obekty-page .ob-numbers__in { grid-template-columns: 1fr 1fr; gap: 22px; padding: 32px 0; }
	.obekty-page .ob-faq { padding: 40px 0; }
	.obekty-page .ob-links { padding: 34px 0 46px; }
	.obekty-page .ob-links__grid { grid-template-columns: 1fr; }
	.obekty-page .ob-drawer__title { font-size: 21px; }
	.obekty-page .ob-drawer__cta { flex-direction: column; }
}

/* Логотип в шапке: тема подставляет белый логотип на белом фоне — на этих страницах делаем его тёмным */
body.page-template-obekty header img,
body.page-template-spisok-obektov header img { filter: brightness(0) !important; }
