/* ==========================================================================
   Лендинг «Строительство домов» — изолированные стили
   Неймспейс .lp-* — не конфликтует с /local/templates/orenpro/template_styles.css
   ========================================================================== */

.lp {
	--lp-maroon: #56130D;
	--lp-maroon-2: #7C2116;
	--lp-maroon-3: #3A0C08;
	--lp-gold: #F2B01E;
	--lp-gold-2: #FFC844;
	--lp-ink: #2A2A2A;
	--lp-muted: #6E6E6E;
	--lp-line: #E4E4E4;
	--lp-bg-soft: #F5F3F1;
	--lp-white: #fff;

	--lp-wrap: 1200px;
	--lp-gap: 30px;
	--lp-radius: 6px;

	--lp-font: "Open Sans", "Segoe UI", Roboto, Arial, sans-serif;

	font-family: var(--lp-font);
	color: var(--lp-ink);
	font-size: 16px;
	line-height: 1.6;
}

.lp *,
.lp *::before,
.lp *::after { box-sizing: border-box; }

.lp img { max-width: 100%; height: auto; display: block; }

.lp__wrap {
	width: 100%;
	max-width: var(--lp-wrap);
	margin: 0 auto;
	padding: 0 20px;
}

/* --- Типографика ---------------------------------------------------------- */

.lp h1, .lp h2, .lp h3, .lp h4 {
	font-weight: 700;
	line-height: 1.2;
	margin: 0 0 18px;
	color: var(--lp-maroon);
}

.lp__h1 {
	font-size: clamp(28px, 4vw, 46px);
	color: var(--lp-white);
	text-transform: none;
}

.lp__h2 {
	font-size: clamp(22px, 2.6vw, 32px);
	margin-top: 40px;
}

.lp__h2--center { text-align: center; }

.lp__h2--upper {
	text-transform: uppercase;
	letter-spacing: .01em;
}

.lp__h3 { font-size: clamp(19px, 2vw, 24px); }

.lp__lead { font-size: 18px; }

.lp__prose p { margin: 0 0 16px; }
.lp__prose ul,
.lp__prose ol { margin: 0 0 20px; padding-left: 0; list-style: none; counter-reset: lpnum; }
.lp__prose ol li { counter-increment: lpnum; }
.lp__prose li {
	position: relative;
	padding-left: 26px;
	margin-bottom: 10px;
}
.lp__prose ul > li::before {
	content: "";
	position: absolute;
	left: 4px; top: 10px;
	width: 8px; height: 8px;
	border-radius: 50%;
	background: var(--lp-gold);
}
.lp__prose ol > li::before {
	content: counter(lpnum) ".";
	position: absolute;
	left: 0; top: 0;
	color: var(--lp-maroon);
	font-weight: 700;
}
.lp__prose a { color: var(--lp-maroon); text-decoration: underline; }
.lp__prose a:hover { color: var(--lp-gold); }

.lp__accent { color: var(--lp-maroon); font-weight: 700; }
.lp__marker {
	background: linear-gradient(transparent 60%, var(--lp-gold-2) 60%);
	padding: 0 2px;
}

/* --- Секции --------------------------------------------------------------- */

.lp__section { padding: 50px 0; }
.lp__section--tight { padding: 30px 0; }
.lp__section--soft { background: var(--lp-bg-soft); }

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

.lp__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 48px;
	padding: 12px 32px;
	border: 0;
	border-radius: 40px;
	background: var(--lp-gold);
	color: var(--lp-maroon-3);
	font: 700 15px/1.2 var(--lp-font);
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: background .2s ease, transform .12s ease, color .2s ease;
}
.lp__btn:hover { background: var(--lp-gold-2); }
.lp__btn:active { transform: translateY(1px); }

.lp__btn--dark {
	background: var(--lp-maroon);
	color: var(--lp-white);
}
.lp__btn--dark:hover { background: var(--lp-maroon-2); }

.lp__btn--ghost {
	background: transparent;
	color: var(--lp-maroon);
	border: 2px solid var(--lp-maroon);
}
.lp__btn--ghost:hover { background: var(--lp-maroon); color: #fff; }

.lp__btn--wide { min-width: 240px; }

.lp__center { text-align: center; }
.lp__mt { margin-top: 30px; }

/* Видимый фокус для клавиатуры */
.lp a:focus-visible,
.lp button:focus-visible,
.lp input:focus-visible,
.lp .lp__faq-q:focus-visible {
	outline: 3px solid var(--lp-gold);
	outline-offset: 2px;
}

/* --- HERO ----------------------------------------------------------------- */

.lp__hero {
	position: relative;
	color: #fff;
	background: var(--lp-maroon-3);
	overflow: hidden;
}
.lp__hero-bg {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
}
.lp__hero-bg::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(20,8,6,.88) 0%, rgba(20,8,6,.62) 55%, rgba(20,8,6,.45) 100%);
}
.lp__hero-inner {
	position: relative;
	z-index: 2;
	padding: 24px 0 60px;
}

.lp__crumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 10px;
	list-style: none;
	margin: 0 0 40px;
	padding: 0;
	font-size: 13px;
	color: rgba(255,255,255,.75);
}
.lp__crumbs a { color: rgba(255,255,255,.75); text-decoration: none; }
.lp__crumbs a:hover { color: var(--lp-gold); }
.lp__crumbs li + li::before { content: "—"; margin-right: 10px; opacity: .5; }

.lp__hero-grid {
	display: grid;
	grid-template-columns: 1fr 460px;
	gap: 40px;
	align-items: start;
}

.lp__hero-title { max-width: 520px; }

/* Карточка формы в герое */
.lp__form-card {
	background: rgba(255,255,255,.96);
	border-radius: var(--lp-radius);
	padding: 28px;
	color: var(--lp-ink);
	box-shadow: 0 20px 50px rgba(0,0,0,.35);
}
.lp__form-card h2 {
	font-size: 22px;
	margin-bottom: 8px;
	color: var(--lp-maroon);
}
.lp__form-card p { font-size: 14px; color: var(--lp-muted); margin: 0 0 18px; }

/* --- Формы ---------------------------------------------------------------- */

.lp__field { margin-bottom: 14px; }

.lp__input {
	width: 100%;
	min-height: 48px;
	padding: 12px 20px;
	border: 1px solid var(--lp-line);
	border-radius: 40px;
	background: #fff;
	font: 400 15px/1.3 var(--lp-font);
	color: var(--lp-ink);
}
.lp__input::placeholder { color: #A3A3A3; }
.lp__input:focus { border-color: var(--lp-gold); outline: none; }

.lp__captcha {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	margin-bottom: 14px;
}
.lp__captcha img { border-radius: 4px; }
.lp__captcha .lp__input { flex: 1 1 160px; width: auto; }

.lp__privacy {
	font-size: 12px;
	line-height: 1.5;
	color: rgba(255,255,255,.7);
	margin-top: 14px;
}
.lp__privacy a { color: var(--lp-gold); }
.lp__form-card .lp__privacy { color: var(--lp-muted); }
.lp__form-card .lp__privacy a { color: var(--lp-maroon); }

/* --- CTA-баннер с менеджером --------------------------------------------- */

.lp__cta {
	position: relative;
	background: linear-gradient(105deg, var(--lp-maroon-3) 0%, var(--lp-maroon) 55%, var(--lp-maroon-2) 100%);
	color: #fff;
	overflow: hidden;
	border-radius: var(--lp-radius);
}
.lp__cta-grid {
	display: grid;
	grid-template-columns: 1.1fr .9fr;
	align-items: end;
	min-height: 320px;
}
.lp__cta-body { padding: 40px; }
.lp__cta-body h2 {
	color: #fff;
	text-transform: uppercase;
	font-size: clamp(22px, 2.4vw, 30px);
	margin-bottom: 6px;
}
.lp__cta-sub { color: rgba(255,255,255,.85); margin-bottom: 22px; }
.lp__cta-body .lp__input { border-color: transparent; }

.lp__cta-photo {
	position: relative;
	align-self: stretch;
	min-height: 300px;
	background-size: cover;
	background-position: center bottom;
}
.lp__cta-badge {
	position: absolute;
	left: 0; bottom: 26px;
	background: var(--lp-maroon-3);
	padding: 10px 22px;
	border-radius: 0 4px 4px 0;
}
.lp__cta-badge b {
	display: block;
	font-size: 18px;
	text-transform: uppercase;
	letter-spacing: .04em;
}
.lp__cta-badge span {
	display: block;
	font-size: 12px;
	color: var(--lp-gold);
	text-transform: uppercase;
	letter-spacing: .1em;
}

/* --- Слайдер портфолио ---------------------------------------------------- */

.lp__tag {
	display: inline-block;
	padding: 6px 18px;
	border-radius: 40px;
	background: var(--lp-maroon);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
	margin-bottom: 24px;
}

.lp__rail-outer { position: relative; }
.lp__rail {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: minmax(300px, 1fr);
	gap: var(--lp-gap);
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	padding-bottom: 6px;
	scrollbar-width: none;
}
.lp__rail::-webkit-scrollbar { display: none; }
.lp__rail > * { scroll-snap-align: start; }

.lp__rail-btn {
	position: absolute;
	top: 40%;
	width: 44px; height: 44px;
	border: 0;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 4px 16px rgba(0,0,0,.18);
	color: var(--lp-maroon);
	font-size: 20px;
	cursor: pointer;
	display: grid;
	place-items: center;
	z-index: 3;
}
.lp__rail-btn--prev { left: -14px; }
.lp__rail-btn--next { right: -14px; }
.lp__rail-btn:hover { background: var(--lp-gold); }

/* Карточка работы */
.lp__work {
	display: flex;
	flex-direction: column;
	text-decoration: none;
	color: inherit;
}
.lp__work-photo {
	aspect-ratio: 4 / 3;
	overflow: hidden;
	border-radius: var(--lp-radius);
	background: #ddd;
}
.lp__work-photo img {
	width: 100%; height: 100%;
	object-fit: cover;
	transition: transform .4s ease;
}
.lp__work:hover .lp__work-photo img { transform: scale(1.05); }
.lp__work-title {
	font-size: 17px;
	font-weight: 700;
	color: var(--lp-ink);
	margin: 16px 0 14px;
	flex-grow: 1;
}
.lp__work .lp__btn { align-self: flex-start; min-height: 40px; padding: 9px 26px; }

/* --- Сетка проектов ------------------------------------------------------- */

.lp__grid-3 {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--lp-gap);
}

.lp__project {
	display: flex;
	flex-direction: column;
	text-decoration: none;
	color: inherit;
}
.lp__project-photo {
	aspect-ratio: 3 / 2;
	overflow: hidden;
	border-radius: var(--lp-radius);
	background: #ddd;
}
.lp__project-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.lp__project:hover .lp__project-photo img { transform: scale(1.05); }
.lp__project-title {
	font-size: 17px;
	font-weight: 700;
	margin: 14px 0 8px;
	color: var(--lp-ink);
}
.lp__project-price {
	font-size: 20px;
	font-weight: 700;
	color: var(--lp-maroon);
}
.lp__project-area {
	font-size: 14px;
	color: var(--lp-muted);
	margin: 4px 0 14px;
	flex-grow: 1;
}
.lp__project .lp__btn { align-self: flex-start; min-height: 40px; padding: 9px 26px; }

/* --- Как происходит строительство (этапы) -------------------------------- */

.lp__stages {
	display: grid;
	gap: 20px;
}
.lp__stage {
	display: grid;
	grid-template-columns: 64px 1fr 300px;
	gap: 24px;
	align-items: center;
	background: #fff;
	border-radius: var(--lp-radius);
	padding: 20px 24px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, .05);
}
.lp__stage-num {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: var(--lp-maroon);
	color: #fff;
	font-size: 24px;
	font-weight: 700;
	display: grid;
	place-items: center;
}
.lp__stage-title {
	font-size: 19px;
	margin: 0 0 8px;
	color: var(--lp-maroon);
}
.lp__stage-text {
	margin: 0;
	color: #444;
	font-size: 15px;
	line-height: 1.55;
}
.lp__stage-photo {
	aspect-ratio: 16 / 10;
	border-radius: var(--lp-radius);
	overflow: hidden;
	background: #eee;
}
.lp__stage-photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

@media (max-width: 900px) {
	.lp__stage {
		grid-template-columns: 48px 1fr;
		gap: 16px;
	}
	.lp__stage-num { width: 44px; height: 44px; font-size: 20px; }
	.lp__stage-photo { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
}

/* --- Двухколоночный SEO-блок --------------------------------------------- */

.lp__split {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 40px;
	align-items: start;
}
.lp__split-photo img {
	width: 100%;
	border-radius: var(--lp-radius);
	object-fit: cover;
}
.lp__split h4 {
	font-size: 19px;
	margin: 26px 0 12px;
}

.lp__note {
	background: var(--lp-bg-soft);
	border-left: 4px solid var(--lp-gold);
	padding: 16px 20px;
	border-radius: 0 4px 4px 0;
	margin-bottom: 20px;
}

/* --- Партнёры и сертификаты ---------------------------------------------- */

.lp__partners {
	display: grid;
	grid-template-columns: 1.4fr 1fr;
	gap: 50px;
	align-items: start;
}
.lp__logos {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 14px;
}
.lp__logos > div {
	display: grid;
	place-items: center;
	padding: 12px;
	background: #fff;
	border: 1px solid var(--lp-line);
	border-radius: 4px;
	min-height: 64px;
}
.lp__logos img { max-height: 40px; width: auto; object-fit: contain; }

.lp__certs {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 14px;
}
.lp__certs img {
	width: 100%;
	border: 1px solid var(--lp-line);
	border-radius: 4px;
}

/* --- Видео ---------------------------------------------------------------- */

.lp__videos {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--lp-gap);
}
.lp__video {
	position: relative;
	aspect-ratio: 16 / 9;
	background: #000;
	border-radius: var(--lp-radius);
	overflow: hidden;
}
.lp__video iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

/* --- Баннер-слайдер ------------------------------------------------------- */

.lp__banner {
	position: relative;
	min-height: 420px;
	display: grid;
	align-items: center;
	background-size: cover;
	background-position: center;
	border-radius: var(--lp-radius);
	overflow: hidden;
	color: #fff;
}
.lp__banner::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(270deg, rgba(30,10,7,.85) 0%, rgba(30,10,7,.25) 60%, transparent 100%);
}
.lp__banner-body {
	position: relative;
	z-index: 2;
	margin-left: auto;
	width: min(420px, 90%);
	padding: 40px;
	text-align: right;
}
.lp__banner-title {
	font-size: clamp(22px, 2.4vw, 30px);
	font-weight: 700;
	text-transform: uppercase;
	line-height: 1.25;
	margin-bottom: 24px;
}

/* --- FAQ ------------------------------------------------------------------ */

.lp__faq { border-top: 1px solid var(--lp-line); }

.lp__faq-item { border-bottom: 1px solid var(--lp-line); }

.lp__faq-q {
	display: grid;
	grid-template-columns: 56px 1fr 32px;
	align-items: center;
	gap: 10px;
	width: 100%;
	padding: 22px 4px;
	background: none;
	border: 0;
	text-align: left;
	font: 700 17px/1.4 var(--lp-font);
	color: var(--lp-ink);
	cursor: pointer;
}
.lp__faq-num {
	font-size: 14px;
	font-weight: 700;
	color: var(--lp-gold);
}
.lp__faq-sign {
	position: relative;
	width: 22px; height: 22px;
	justify-self: end;
}
.lp__faq-sign::before,
.lp__faq-sign::after {
	content: "";
	position: absolute;
	background: var(--lp-maroon);
	transition: transform .25s ease, opacity .25s ease;
}
.lp__faq-sign::before { top: 10px; left: 0; width: 22px; height: 2px; }
.lp__faq-sign::after  { left: 10px; top: 0; width: 2px; height: 22px; }
.lp__faq-item.is-open .lp__faq-sign::after { transform: rotate(90deg); opacity: 0; }

.lp__faq-a {
	display: none;
	padding: 0 4px 26px 66px;
	color: #444;
}
.lp__faq-item.is-open .lp__faq-a { display: block; }
.lp__faq-a ul, .lp__faq-a ol { margin: 0 0 16px; padding-left: 0; list-style: none; counter-reset: lpnum; }
.lp__faq-a li { position: relative; padding-left: 24px; margin-bottom: 8px; }
.lp__faq-a ul > li::before {
	content: ""; position: absolute; left: 4px; top: 10px;
	width: 7px; height: 7px; border-radius: 50%; background: var(--lp-gold);
}
.lp__faq-a ol > li { counter-increment: lpnum; }
.lp__faq-a ol > li::before {
	content: counter(lpnum) "."; position: absolute; left: 0; top: 0;
	color: var(--lp-maroon); font-weight: 700;
}

/* --- Адаптив -------------------------------------------------------------- */

@media (max-width: 1024px) {
	.lp__hero-grid { grid-template-columns: 1fr; }
	.lp__form-card { max-width: 520px; }
	.lp__cta-grid { grid-template-columns: 1fr; }
	.lp__cta-photo { min-height: 260px; order: -1; }
	.lp__cta-badge { bottom: 16px; }
	.lp__grid-3 { grid-template-columns: repeat(2, 1fr); }
	.lp__videos { grid-template-columns: repeat(2, 1fr); }
	.lp__split { grid-template-columns: 1fr; }
	.lp__partners { grid-template-columns: 1fr; gap: 34px; }
	.lp__logos { grid-template-columns: repeat(3, 1fr); }
	.lp__rail-btn--prev { left: 4px; }
	.lp__rail-btn--next { right: 4px; }
}

@media (max-width: 640px) {
	.lp { font-size: 15px; }
	.lp__section { padding: 34px 0; }
	.lp__grid-3 { grid-template-columns: 1fr; }
	.lp__videos { grid-template-columns: 1fr; }
	.lp__logos { grid-template-columns: repeat(2, 1fr); }
	.lp__certs { grid-template-columns: 1fr; }
	.lp__cta-body { padding: 26px 20px; }
	.lp__banner-body { text-align: left; margin: 0; padding: 26px 20px; width: 100%; }
	.lp__banner::before { background: linear-gradient(0deg, rgba(30,10,7,.9) 20%, rgba(30,10,7,.3) 100%); }
	.lp__faq-q { grid-template-columns: 34px 1fr 24px; font-size: 15px; padding: 18px 2px; }
	.lp__faq-a { padding-left: 36px; }
	.lp__rail { grid-auto-columns: 82%; }
}

@media (prefers-reduced-motion: reduce) {
	.lp *, .lp *::before, .lp *::after {
		animation-duration: .001ms !important;
		transition-duration: .001ms !important;
		scroll-behavior: auto !important;
	}
}
