/* Главный баннер и боковые баннеры главной — Figma «ГАЛЕРЕЯ», кадр 364:930 */

/* ---------- Главный баннер ---------- */
.billbord--v2 {
	margin: 24px 20px 0;
	min-height: 800px;
	padding-top: 67px;
	padding-bottom: 40px;
	border-radius: 48px;
	background: #d9d9d9;
}
.billbord--v2::before {
	display: none;
}
.billbord--v2 .media-layer {
	border-radius: 48px;
	object-fit: cover;
	object-position: center;
}
.billbord--v2 .offer__title h1,
.billbord--v2 .offer__title > div {
	color: #2a2a2a !important;
	text-shadow: none;
}
.billbord--v2 h1 {
	font-size: 48px;
	font-weight: 600;
	line-height: 1.6;
	letter-spacing: .03em;
}
.billbord--v2 h1 strong {
	color: #2a2a2a;
	font-weight: 800;
}
.billbord--v2 .offer__title > div {
	font-size: 20px;
	font-weight: 600;
	line-height: 1.6;
	letter-spacing: .03em;
}
.billbord--v2 .banner-but {
	margin-top: 60px;
}
.billbord--v2 .banner-but a {
	display: inline-block;
	padding: 20px 24px;
	border-radius: 10px;
	background: linear-gradient(180deg, #77a7d5 0%, #4b7fb1 100%);
	box-shadow: none;
	font: 600 16px/1.6 "Manrope", sans-serif;
	letter-spacing: .03em;
	text-transform: none;
	color: #fff;
	cursor: pointer;
	transition: filter .3s;
}
.billbord--v2 .banner-but a:hover {
	filter: brightness(1.08);
}

/* ---------- Боковые баннеры ---------- */
.front-wrap {
	position: relative;
}
.side-promo {
	position: absolute;
	top: 55px;
	right: 60px;
	bottom: 40px;
	z-index: 50;
	width: 298px;
	pointer-events: none;
}
.side-promo__inner {
	position: sticky;
	top: 149px; /* шапка 125px + отступ */
	display: flex;
	flex-direction: column;
	gap: 20px;
	pointer-events: auto;
	transform-origin: top right;
}
.side-promo__card {
	position: relative;
	flex: 0 0 auto;
	width: 298px;
	height: 360px;
	border-radius: 20px;
	overflow: hidden;
	background: #faf2f0;
	box-shadow: 0 10px 30px rgba(42, 42, 42, .12);
}
.side-promo__card--blue {
	background: #e8f4ff;
}
.side-promo__link {
	position: absolute;
	inset: 0;
	display: block;
	color: #2a2a2a;
	text-decoration: none !important;
	cursor: pointer;
}
.side-promo__circle {
	position: absolute;
	left: -5px;
	top: 101px;
	width: 342px;
	height: 342px;
	border-radius: 50%;
	background: linear-gradient(225deg, #915b79 0%, #faf2f0 94%);
}
.side-promo__card--blue .side-promo__circle {
	left: -66px;
	top: 42px;
	width: 337px;
	height: 337px;
	background: linear-gradient(223deg, #77a7d5 0%, #e4e6f4 67%);
}
.side-promo__img {
	position: absolute;
	left: -9px;
	top: 82px;
	width: 350px;
	max-width: none;
	height: 233px;
	object-fit: cover;
	transition: transform .4s;
}
.side-promo__card--blue .side-promo__img {
	left: -5px;
	top: 138px;
	width: 308px;
	height: 231px;
}
.side-promo__link:hover .side-promo__img {
	transform: scale(1.04);
}
.side-promo__title {
	position: absolute;
	left: 18px;
	top: 18px;
	z-index: 1;
	font: 700 24px/1.1 "Manrope", sans-serif;
	text-transform: uppercase;
	color: #681942;
}
.side-promo__title b {
	display: block;
	font-weight: 800;
}
.side-promo__card--blue .side-promo__title {
	top: 20px;
	font-size: 32px;
	font-weight: 600;
	line-height: 1;
	color: #2a2a2a;
}
.side-promo__card--blue .side-promo__title b {
	font-size: 48px;
	line-height: 1;
}
.side-promo__big {
	position: absolute;
	left: 14px;
	top: 75px;
	z-index: 1;
	font: 400 128px/1.1 "Alkalami", serif;
	color: #5a143a;
	white-space: nowrap;
}
.side-promo__big small {
	font-size: 96px;
}
.side-promo__logos {
	position: absolute;
	left: 18px;
	top: 122px;
	z-index: 1;
	display: flex;
	align-items: center;
	gap: 22px;
}
.side-promo__logos img {
	width: auto;
	height: 28px;
}
.side-promo__text {
	position: absolute;
	left: 23px;
	top: 307px;
	z-index: 1;
	font: 600 14px/1.3 "Manrope", sans-serif;
	letter-spacing: .03em;
	color: #2a2a2a;
}
.side-promo__close {
	position: absolute;
	top: 6px;
	right: 6px;
	z-index: 3;
	width: 32px;
	height: 32px;
	padding: 6px;
	border: 0;
	border-radius: 50%;
	background: none;
	line-height: 0;
	cursor: pointer;
	transition: background .2s;
}
.side-promo__close:hover {
	background: rgba(255, 255, 255, .7);
}

/* Остальные страницы: карточки уменьшены и закреплены справа под шапкой.
   Низ = 149 + 740 × масштаб — выше кнопки «наверх» (~100px от низа окна) */
@media (min-width: 1200px) {
	.side-promo--fixed {
		position: fixed;
		top: 149px;
		right: 20px;
		bottom: auto;
		z-index: 90;
	}
	.side-promo--fixed .side-promo__inner {
		position: static;
		transform: scale(.7);
	}
}
@media (min-width: 1200px) and (max-height: 780px) {
	.side-promo--fixed .side-promo__inner {
		transform: scale(.6);
	}
}
@media (min-width: 1200px) and (max-height: 690px) {
	.side-promo--fixed .side-promo__inner {
		transform: scale(.5);
	}
}
@media (max-width: 1199px) {
	.side-promo--fixed {
		padding-bottom: 40px;
	}
}

/* Старая плавающая плашка «Жильё в кредит» отключена (убрана из шапок; правило — на случай других шаблонов шапки) */
.btn-fixed.btn-desktop {
	display: none !important;
}

/* Подзаголовок модалки — с какого баннера заявка */
#modal-promo-lead .js-promo-source {
	margin-bottom: 15px;
	font-weight: 600;
	color: #fff;
	opacity: .85;
}

/* Невысокие экраны: уменьшаем карточки, чтобы обе влезали и не закрывали кнопку «наверх» (~100px снизу).
   Масштаб ≈ (высота окна − 249) / 740 */
@media (min-width: 1200px) and (max-height: 1000px) {
	.side-promo__inner {
		transform: scale(.82);
	}
}
@media (min-width: 1200px) and (max-height: 860px) {
	.side-promo__inner {
		transform: scale(.72);
	}
}
@media (min-width: 1200px) and (max-height: 780px) {
	.side-promo__inner {
		transform: scale(.6);
	}
}
@media (min-width: 1200px) and (max-height: 690px) {
	.side-promo__inner {
		transform: scale(.5);
	}
}

@media (max-width: 1500px) {
	.billbord--v2 > .container {
		padding-left: 40px;
		padding-right: 40px;
	}
}
/* Карточки справа перекрывают кнопку видео — переносим её правее кнопки заявки */
@media (min-width: 1200px) and (max-width: 1500px) {
	.billbord--v2 .banner-video-main {
		top: auto;
		bottom: 175px; /* над фильтром, на уровне кнопки заявки */
		right: auto;
		left: 540px;
		margin-left: 0;
	}
}

@media (max-width: 1400px) {
	.billbord--v2 {
		margin: 20px 16px 0;
		border-radius: 32px;
	}
	.billbord--v2 .media-layer {
		border-radius: 32px;
	}
	.side-promo {
		right: 40px;
	}
}

/* Планшет и мобилка: баннеры под главным, без закрепления */
@media (max-width: 1199px) {
	.side-promo {
		position: static;
		width: auto;
		padding: 20px 15px 0;
		pointer-events: auto;
	}
	.side-promo__inner {
		position: static;
		flex-direction: row;
		flex-wrap: wrap;
		justify-content: center;
		transform: none;
	}
}

@media (max-width: 992px) {
	.billbord--v2 {
		min-height: 0;
		padding-top: 40px;
		border-radius: 24px;
	}
	.billbord--v2 .media-layer {
		border-radius: 24px;
	}
	.billbord--v2 .banner-but {
		margin-top: 30px;
	}
	/* светлая подложка под тёмный текст */
	.billbord--v2::before {
		display: block;
		border-radius: inherit;
		background: linear-gradient(180deg, rgba(255, 255, 255, .8) 0%, rgba(255, 255, 255, .2) 75%);
	}
}

@media (max-width: 576px) {
	.billbord--v2 > .container {
		padding-left: 15px;
		padding-right: 15px;
	}
	.billbord--v2 {
		margin: 10px 10px 0;
		border-radius: 20px;
	}
	.billbord--v2 .media-layer {
		border-radius: 20px;
	}
	.billbord--v2 h1 {
		font-size: 28px;
	}
	.billbord--v2 .offer__title > div {
		font-size: 16px;
	}
	.billbord--v2 .banner-but a {
		padding: 14px 18px;
		font-size: 14px;
		white-space: normal;
	}
}

@media (max-width: 640px) {
	.side-promo__inner {
		flex-direction: column;
		align-items: center;
	}
}
