/*----------------------------------------------------------------------------------------
* РСК — компоненты главной страницы
* Подключается после custom.css. Использует переменные из custom.css (:root).
*---------------------------------------------------------------------------------------- */
/* INDEX
----------------------------------------------------------------------------------------
01. Общие элементы
02. Полоса акции над шапкой
03. Шапка: телефон, сравнение, избранное
04. Hero и быстрый подбор
05. Проекты: карточки и карта
06. Квартиры месяца
07. Преимущества (вкладки с фото)
08. Способы покупки и калькулятор
09. Акции
10. О компании: цифры, награды, банки
11. Ход строительства
12. Новости
13. Форма подбора и офис продаж
14. Подвал и юридическая информация
15. Мобильная панель, попап, cookie, «наверх»
16. Адаптив
-------------------------------------------------------------------------------------- */

/************************************/
/****     01. Общие элементы     ****/
/************************************/

.section-title.section-title-left{
	text-align: left;
}

.section-link{
	text-align: right;
	margin-bottom: 60px;
}

/* Якорные ссылки меню не прячут заголовок под фиксированной шапкой */
#projects,
#purchase,
#promo,
#construction,
#contacts{
	scroll-margin-top: 90px;
}

.btn-default:focus-visible,
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible{
	outline: 2px solid var(--accent-color);
	outline-offset: 2px;
}

/* Метка над заголовком — фирменный элемент: скошенный красный фрагмент знака «Р» */
.section-title h3:before{
	width: 28px;
	height: 14px;
	top: 50%;
	margin-top: -7px;
	background: var(--accent-color);
	clip-path: polygon(0 0, 100% 0, 62% 100%, 0 100%);
	border-radius: 2px;
}

.hero-content .section-title h3:before{
	background: var(--accent-color);
}

/* Подзаголовок на фото — белый для читаемости, фирменный маркер остаётся красным */
.hero-content .section-title h3{
	color: var(--white-color);
}

/* Кнопки «В избранное» / «Сравнить» */
.favorite-toggle,
.compare-toggle{
	border: none;
	padding: 0;
	cursor: pointer;
}

.favorite-toggle,
.compare-toggle{
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--white-color);
	color: var(--primary-color);
	font-size: 17px;
	transition: all 0.3s ease-out;
}

.favorite-toggle:hover,
.favorite-toggle.active,
.compare-toggle:hover{
	color: var(--accent-color);
}

.compare-toggle.active{
	background: var(--primary-color);
	color: var(--white-color);
}

/* Отметки согласий в формах */
.form-check-consent{
	display: flex;
	gap: 10px;
	align-items: flex-start;
	font-size: 13px;
	line-height: 1.4em;
	margin: 12px 0 0;
	cursor: pointer;
}

.form-check-consent input{
	flex-shrink: 0;
	margin-top: 2px;
	accent-color: var(--accent-color);
}

.form-check-consent a{
	color: var(--primary-color);
	text-decoration: underline;
}

.form-message{
	font-size: 14px;
	margin-top: 10px;
}

.form-message:empty{
	display: none;
}

.form-message.success{
	color: #1E7B34;
}

.form-message.error{
	color: var(--error-color);
}

/************************************/
/**** 02. Полоса акции           ****/
/************************************/

.top-offer-bar{
	background: var(--accent-color);
	color: var(--white-color);
	font-size: 14px;
	line-height: 1.3em;
}

.top-offer-bar[hidden]{
	display: none;
}

.top-offer-bar .container{
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	padding-top: 9px;
	padding-bottom: 9px;
}

.top-offer-link{
	display: flex;
	align-items: center;
	gap: 10px;
	color: var(--white-color);
	padding: 0 40px;
	text-align: center;
}

.top-offer-link:hover{
	color: var(--white-color);
	text-decoration: underline;
}

.top-offer-label{
	flex-shrink: 0;
	background: var(--white-color);
	color: var(--accent-color);
	font-family: var(--condensed-font);
	font-weight: 700;
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 1px;
	padding: 1px 8px;
	border-radius: 3px;
}

.top-offer-close{
	position: absolute;
	right: 15px;
	top: 50%;
	transform: translateY(-50%);
	background: none;
	border: none;
	color: var(--white-color);
	font-size: 16px;
	padding: 4px 8px;
	opacity: 0.8;
}

.top-offer-close:hover{
	opacity: 1;
}

/************************************/
/**** 03. Шапка                  ****/
/************************************/

.navbar-brand{
	flex-shrink: 0;
}

.main-menu ul li{
	margin-left: 16px;
}

.main-menu ul li a{
	white-space: nowrap;
}

.header-actions{
	display: flex;
	align-items: center;
	gap: 12px;
	margin-left: 26px;
}

.header-phone{
	display: flex;
	align-items: center;
	gap: 8px;
	font-family: var(--accent-font);
	font-weight: 800;
	font-size: 16px;
	color: var(--primary-color);
	white-space: nowrap;
	margin-right: 6px;
	transition: color 0.3s ease-out;
}

.header-phone i{
	color: var(--accent-color);
	font-size: 18px;
}

.header-phone:hover{
	color: var(--accent-color);
}

.header-icon-link{
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--secondary-color);
	color: var(--primary-color);
	font-size: 18px;
	transition: all 0.3s ease-out;
}

.header-icon-link:hover{
	background: var(--accent-color);
	color: var(--white-color);
}

.header-counter{
	position: absolute;
	top: -2px;
	right: -2px;
	min-width: 18px;
	height: 18px;
	padding: 0 4px;
	border-radius: 9px;
	background: var(--accent-color);
	color: var(--white-color);
	font-family: var(--condensed-font);
	font-size: 12px;
	font-weight: 700;
	line-height: 18px;
	text-align: center;
}

.header-counter[data-count="0"]{
	display: none;
}

/************************************/
/**** 04. Hero и быстрый подбор  ****/
/************************************/

.hero-content{
	max-width: 860px;
}

.hero-content .section-title h1,
.hero-content .section-title h2{
	font-size: 60px;
	color: var(--white-color);
	line-height: 1.2em;
}

/* Слайд с панорамой: показываем верхнюю часть картинки */
.hero-slide-image.hero-slide-image-top img{
	object-position: center top;
}

/* Форма подбора с вкладками типов выше шаблонной — увеличиваем отступ под ней */
@media only screen and (min-width: 992px){
	.hero-slider .hero-section .hero-slide{
		padding-bottom: 380px;
	}
}

.quick-search-types{
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 20px;
	padding-bottom: 20px;
	border-bottom: 1px solid var(--divider-color);
}

.quick-search-types label{
	margin: 0;
	cursor: pointer;
}

.quick-search-types input,
.room-chips input,
.contact-method input{
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.quick-search-types span{
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px 18px;
	border-radius: 30px;
	background: var(--secondary-color);
	font-family: var(--accent-font);
	font-weight: 800;
	font-size: 15px;
	color: var(--primary-color);
	transition: all 0.2s ease-out;
}

.quick-search-types span i{
	color: var(--accent-color);
	transition: color 0.2s ease-out;
}

.quick-search-types span small{
	font-family: var(--condensed-font);
	font-weight: 700;
	font-size: 14px;
	color: var(--text-color);
}

.quick-search-types label:hover span{
	background: var(--divider-color);
}

.quick-search-types input:checked + span{
	background: var(--primary-color);
	color: var(--white-color);
}

.quick-search-types input:checked + span i,
.quick-search-types input:checked + span small{
	color: var(--white-color);
}

.quick-search-types input:focus-visible + span,
.room-chips input:focus-visible + span,
.contact-method input:focus-visible + span{
	outline: 2px solid var(--accent-color);
	outline-offset: 2px;
}

.quick-search-rooms.is-hidden{
	display: none;
}

.quick-search-label{
	display: block;
	font-family: var(--condensed-font);
	font-size: 15px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1px;
	color: var(--primary-color);
	margin-bottom: 8px;
}

.room-chips{
	display: flex;
	gap: 6px;
}

.room-chips label{
	flex: 1;
	margin: 0;
	cursor: pointer;
}

.room-chips span{
	display: block;
	text-align: center;
	padding: 13px 0;
	border-radius: 5px;
	border: 1px solid var(--divider-color);
	background: var(--secondary-color);
	font-family: var(--accent-font);
	font-weight: 800;
	font-size: 15px;
	color: var(--primary-color);
	transition: all 0.2s ease-out;
}

.room-chips label:hover span{
	border-color: var(--primary-color);
}

.room-chips input:checked + span{
	background: var(--primary-color);
	border-color: var(--primary-color);
	color: var(--white-color);
}

/************************************/
/**** 05. Проекты                ****/
/************************************/

.view-switch{
	display: inline-flex;
	padding: 4px;
	background: var(--white-color);
	border-radius: 30px;
	border: 1px solid var(--divider-color);
}

.view-switch button{
	border: none;
	background: transparent;
	padding: 9px 18px;
	border-radius: 30px;
	font-family: var(--accent-font);
	font-weight: 800;
	font-size: 14px;
	color: var(--primary-color);
	transition: all 0.2s ease-out;
}

.view-switch button i{
	margin-right: 6px;
	color: var(--accent-color);
}

.view-switch button.active{
	background: var(--primary-color);
	color: var(--white-color);
}

.view-switch button.active i{
	color: var(--white-color);
}

.projects-view[hidden]{
	display: none;
}

/* Карточки одной высоты в слайдере */
.property-slider .swiper-slide{
	height: auto;
}

.project-item{
	height: 100%;
	display: flex;
	flex-direction: column;
}

.project-item .property-body{
	flex: 1;
}

.project-item .property-header figure img{
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.property-item .property-header .property-label.status-sale{
	background: var(--accent-color);
}

.property-item .property-header .property-label.status-start{
	background: var(--dark-blue-color);
}

.property-item .property-header .property-label.status-done{
	background: var(--primary-color);
}

.project-item .favorite-toggle{
	position: absolute;
	top: 16px;
	right: 16px;
	z-index: 2;
}

.project-item .property-body h3 a{
	color: var(--primary-color);
}

.project-item .property-body h3 a:hover{
	color: var(--accent-color);
}

.project-item .property-body > p i{
	color: var(--accent-color);
	margin-right: 4px;
}

.project-houses{
	list-style: none;
	padding: 0;
	margin: 20px 0 0;
}

.project-houses li{
	display: flex;
	justify-content: space-between;
	gap: 10px;
	padding: 8px 0;
	border-bottom: 1px dashed var(--divider-color);
	font-size: 15px;
}

.project-houses li span:first-child{
	color: var(--primary-color);
	font-weight: 700;
}

.project-houses .is-done{
	color: var(--primary-color);
}

.project-houses .is-done:before{
	content: '\f00c';
	font-family: 'Font Awesome 6 Free';
	font-weight: 900;
	color: var(--accent-color);
	margin-right: 6px;
}

.project-stats{
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 6px 12px;
	margin-top: 16px;
	padding-bottom: 20px;
	border-bottom: 1px solid var(--gray-divider);
	font-size: 14px;
}

.project-stats i{
	color: var(--accent-color);
}

.project-stats strong{
	font-family: var(--condensed-font);
	font-weight: 900;
	font-size: 18px;
	color: var(--primary-color);
}

.project-item .property-footer .property-price small{
	font-size: 0.65em;
	font-weight: 700;
	margin-right: 2px;
}

.projects-map{
	height: 540px;
	border-radius: 20px;
	overflow: hidden;
	background: var(--divider-color);
	z-index: 1;
}

.map-popup strong{
	display: block;
	font-family: var(--accent-font);
	font-weight: 800;
	font-size: 16px;
	color: var(--primary-color);
	margin-bottom: 4px;
}

.map-popup span{
	display: block;
	color: var(--text-color);
	margin-bottom: 2px;
}

.map-popup a{
	display: inline-block;
	margin-top: 6px;
	font-weight: 700;
	color: var(--accent-color);
}

/************************************/
/**** 06. Квартиры месяца        ****/
/************************************/

.flats-month{
	padding: 100px 0 70px;
}

.flat-card{
	position: relative;
	background: var(--white-color);
	border: 1px solid var(--divider-color);
	border-radius: 20px;
	padding: 20px;
	margin-bottom: 30px;
	height: calc(100% - 30px);
	display: flex;
	flex-direction: column;
	transition: box-shadow 0.3s ease-out, border-color 0.3s ease-out;
}

.flat-card:hover{
	border-color: transparent;
	box-shadow: 0 15px 40px #3433331f;
}

.flat-card-header{
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.flat-discount{
	background: var(--accent-color);
	color: var(--white-color);
	font-family: var(--condensed-font);
	font-weight: 900;
	font-size: 18px;
	padding: 3px 12px;
	border-radius: 5px;
}

.flat-discount.flat-discount-ready{
	background: var(--primary-color);
	font-weight: 700;
	font-size: 16px;
}

.flat-card-actions{
	display: flex;
	gap: 6px;
}

.flat-card-actions a{
	width: 36px;
	height: 36px;
	font-size: 15px;
	background: var(--secondary-color);
}

.flat-card-plan{
	display: block;
	margin: 15px 0;
}

.flat-card-plan img{
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: contain;
	border-radius: 12px;
}

.flat-card-body{
	display: flex;
	flex-direction: column;
	flex: 1;
}

.flat-card-project{
	font-size: 13px;
	margin-bottom: 4px;
}

.flat-card-body h3{
	font-size: 20px;
	margin-bottom: 4px;
}

.flat-card-body h3 a{
	color: var(--primary-color);
}

.flat-card-body h3 a:hover{
	color: var(--accent-color);
}

.flat-card-meta{
	font-size: 14px;
	margin-bottom: 15px;
}

.flat-card-price{
	margin-top: auto;
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 4px 12px;
}

.flat-card-price del{
	font-size: 14px;
	color: var(--text-color);
}

.flat-card-price strong{
	font-family: var(--condensed-font);
	font-weight: 900;
	font-size: 26px;
	color: var(--accent-color);
	line-height: 1;
}

/************************************/
/**** 07. Преимущества           ****/
/************************************/

.advantages-tabs-section{
	padding: 100px 0;
	background: var(--secondary-color);
}

.advantages-tabs{
	display: grid;
	grid-template-columns: 280px 1fr;
	gap: 30px;
	align-items: stretch;
}

.advantages-nav{
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.advantages-nav button{
	position: relative;
	text-align: left;
	border: none;
	background: var(--white-color);
	border-radius: 15px;
	padding: 22px 26px;
	font-family: var(--accent-font);
	font-weight: 800;
	font-size: 20px;
	color: var(--primary-color);
	transition: all 0.25s ease-out;
}

.advantages-nav button:after{
	content: '\f061';
	font-family: 'Font Awesome 6 Free';
	font-weight: 900;
	position: absolute;
	right: 24px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 15px;
	opacity: 0;
	transition: opacity 0.25s ease-out;
}

.advantages-nav button:hover{
	color: var(--accent-color);
}

.advantages-nav button.active{
	background: var(--accent-color);
	color: var(--white-color);
}

.advantages-nav button.active:after{
	opacity: 1;
}

.advantages-panel{
	position: relative;
	border-radius: 20px;
	overflow: hidden;
	min-height: 460px;
}

.advantages-panel[hidden]{
	display: none;
}

.advantages-panel.active{
	animation: advFade 0.4s ease-out;
}

@keyframes advFade{
	from{ opacity: 0; }
	to{ opacity: 1; }
}

.advantages-panel figure,
.advantages-panel figure img{
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.advantages-panel-content{
	position: absolute;
	left: 30px;
	bottom: 30px;
	max-width: 460px;
	background: var(--white-color);
	border-radius: 15px;
	padding: 26px 30px;
}

.advantages-panel-content h3{
	font-size: 24px;
	margin-bottom: 10px;
}

.advantages-panel-content p{
	margin: 0;
}

/************************************/
/**** 08. Способы покупки        ****/
/************************************/

.purchase-methods{
	padding: 100px 0 70px;
}

.purchase-list{
	display: flex;
	flex-direction: column;
	gap: 15px;
	margin-bottom: 30px;
}

.purchase-item{
	display: flex;
	align-items: center;
	gap: 20px;
	padding: 20px 25px;
	background: var(--secondary-color);
	border-radius: 20px;
	border: 1px solid transparent;
	color: var(--text-color);
	transition: all 0.3s ease-out;
}

.purchase-item:hover{
	background: var(--white-color);
	border-color: var(--divider-color);
	color: var(--text-color);
	box-shadow: 0 10px 30px #34333314;
}

.purchase-item .icon-box{
	flex: 0 0 56px;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: var(--primary-color);
	color: var(--white-color);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 22px;
	transition: background 0.3s ease-out;
}

.purchase-item:hover .icon-box{
	background: var(--accent-color);
}

.purchase-item-content{
	flex: 1;
}

.purchase-item-content h3{
	font-size: 20px;
	color: var(--primary-color);
	margin-bottom: 2px;
}

.purchase-item-content p{
	margin: 0;
	font-size: 15px;
}

.purchase-item-value{
	font-family: var(--condensed-font);
	font-weight: 900;
	font-size: 26px;
	color: var(--accent-color);
	white-space: nowrap;
}

.mortgage-calc{
	background: var(--primary-color);
	color: var(--white-color);
	border-radius: 20px;
	padding: 40px;
	margin-bottom: 30px;
}

.mortgage-calc h3{
	color: var(--white-color);
	font-size: 26px;
	margin-bottom: 30px;
}

.mortgage-calc h3 i{
	color: var(--accent-color);
	margin-right: 8px;
}

.calc-field{
	margin-bottom: 22px;
}

.calc-field-header{
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	margin-bottom: 10px;
}

.calc-field-header label{
	font-size: 15px;
	color: #ffffffcc;
}

.calc-field-header output{
	font-family: var(--condensed-font);
	font-weight: 700;
	font-size: 22px;
	color: var(--white-color);
}

.mortgage-calc input[type="range"]{
	width: 100%;
	height: 4px;
	-webkit-appearance: none;
	appearance: none;
	background: linear-gradient(to right, var(--accent-color) var(--fill, 50%), #ffffff33 var(--fill, 50%));
	border-radius: 2px;
	outline: none;
	cursor: pointer;
}

.mortgage-calc input[type="range"]::-webkit-slider-thumb{
	-webkit-appearance: none;
	appearance: none;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: var(--white-color);
	border: 4px solid var(--accent-color);
}

.mortgage-calc input[type="range"]::-moz-range-thumb{
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: var(--white-color);
	border: 4px solid var(--accent-color);
}

.mortgage-calc .form-control{
	background: #ffffff14;
	border-color: #ffffff33;
	color: var(--white-color);
	font-size: 16px;
}

.calc-result{
	display: flex;
	gap: 15px;
	margin: 30px 0;
}

.calc-result-item{
	flex: 1;
	background: #ffffff10;
	border-radius: 12px;
	padding: 16px 20px;
}

.calc-result-item span{
	display: block;
	font-size: 14px;
	color: #ffffffb3;
	margin-bottom: 4px;
}

.calc-result-item strong{
	font-family: var(--condensed-font);
	font-weight: 900;
	font-size: 30px;
	line-height: 1.1;
	color: var(--white-color);
}

.mortgage-calc .btn-default:before{
	background: var(--accent-dark-color);
}

.calc-note{
	font-size: 13px;
	color: #ffffff99;
	margin: 15px 0 0;
}

/************************************/
/****       09. Акции            ****/
/************************************/

.promo-section{
	padding: 100px 0 70px;
	background: var(--secondary-color);
}

.promo-item{
	background: var(--white-color);
	border-radius: 20px;
	overflow: hidden;
	margin-bottom: 30px;
	height: calc(100% - 30px);
	display: flex;
	flex-direction: column;
}

.promo-image{
	position: relative;
}

.promo-image img{
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
}

.promo-timer{
	position: absolute;
	left: 20px;
	bottom: 20px;
	z-index: 2;
	background: var(--accent-color);
	color: var(--white-color);
	font-family: var(--condensed-font);
	font-weight: 700;
	font-size: 16px;
	letter-spacing: 0.5px;
	padding: 5px 14px;
	border-radius: 5px;
}

.promo-timer i{
	margin-right: 6px;
}

.promo-body{
	padding: 25px 30px 30px;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.promo-body h3{
	font-size: 22px;
	margin-bottom: 10px;
}

.promo-body h3 a{
	color: var(--primary-color);
}

.promo-body h3 a:hover{
	color: var(--accent-color);
}

.promo-body p{
	margin-bottom: 20px;
}

.promo-link{
	margin-top: auto;
	font-family: var(--accent-font);
	font-weight: 800;
	color: var(--accent-color);
}

.promo-link i{
	margin-left: 6px;
	transition: transform 0.3s ease-out;
}

.promo-link:hover{
	color: var(--accent-dark-color);
}

.promo-link:hover i{
	transform: translateX(4px);
}

/************************************/
/**** 10. О компании и доверие   ****/
/************************************/

.trust-section{
	padding: 100px 0;
}

.trust-section .section-title{
	margin-bottom: 25px;
}

.trust-content p{
	margin-bottom: 30px;
}

.trust-counters > *{
	margin-bottom: 30px;
}

.trust-counters .counter-item{
	height: 100%;
	text-align: left;
	border-left: 4px solid var(--accent-color);
	border-radius: 0 20px 20px 0;
}

.trust-counters .counter-item h3{
	font-size: 48px;
	line-height: 1;
	margin-bottom: 8px;
}

.trust-counters .counter-item h3 small{
	font-size: 0.55em;
	font-weight: 700;
}

.trust-awards{
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 30px;
	margin-top: 40px;
}

.trust-award{
	display: flex;
	align-items: center;
	gap: 18px;
	padding: 22px 26px;
	border: 1px solid var(--divider-color);
	border-radius: 20px;
}

.trust-award i{
	flex-shrink: 0;
	width: 54px;
	height: 54px;
	border-radius: 50%;
	background: var(--secondary-color);
	color: var(--accent-color);
	font-size: 24px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.trust-award strong{
	display: block;
	font-family: var(--accent-font);
	font-weight: 800;
	font-size: 17px;
	color: var(--primary-color);
	line-height: 1.3em;
}

.trust-award span{
	font-size: 14px;
}

.partner-banks{
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 15px 30px;
	margin-top: 40px;
	padding-top: 30px;
	border-top: 1px solid var(--divider-color);
}

.partner-banks-title{
	margin: 0;
	font-family: var(--condensed-font);
	font-weight: 700;
	font-size: 16px;
	text-transform: uppercase;
	letter-spacing: 1.5px;
	color: var(--primary-color);
}

.partner-banks ul{
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	list-style: none;
	padding: 0;
	margin: 0;
}

.partner-banks li{
	padding: 8px 18px;
	border-radius: 30px;
	background: var(--secondary-color);
	font-family: var(--accent-font);
	font-weight: 800;
	font-size: 14px;
	color: var(--primary-color);
}

/************************************/
/****  11. Ход строительства     ****/
/************************************/

.construction-progress{
	padding: 100px 0 70px;
	background: var(--secondary-color);
}

.construction-item{
	display: block;
	background: var(--white-color);
	border-radius: 20px;
	overflow: hidden;
	margin-bottom: 30px;
	color: var(--text-color);
}

.construction-item:hover{
	color: var(--text-color);
}

.construction-item figure img{
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
	transition: transform 0.5s ease-out;
}

.construction-item:hover figure img{
	transform: scale(1.08);
}

.construction-body{
	padding: 25px 30px 30px;
}

.construction-date{
	display: block;
	font-family: var(--condensed-font);
	font-weight: 700;
	font-size: 16px;
	text-transform: uppercase;
	letter-spacing: 1px;
	color: var(--text-color);
	margin-bottom: 8px;
}

.construction-date i{
	color: var(--accent-color);
	margin-right: 6px;
}

.construction-body h3{
	font-size: 20px;
	margin-bottom: 18px;
}

.construction-progress-bar{
	height: 6px;
	background: var(--divider-color);
	border-radius: 3px;
	overflow: hidden;
	margin-bottom: 8px;
}

.construction-progress-fill{
	height: 100%;
	background: var(--accent-color);
	border-radius: 3px;
}

.construction-percent{
	font-family: var(--condensed-font);
	font-weight: 700;
	font-size: 16px;
	color: var(--primary-color);
}

/************************************/
/****        12. Новости         ****/
/************************************/

.latest-posts .post-item{
	margin-bottom: 30px;
}

.post-tags{
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 10px;
}

.post-tag{
	padding: 3px 10px;
	border-radius: 4px;
	background: var(--secondary-color);
	font-family: var(--condensed-font);
	font-weight: 700;
	font-size: 14px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: var(--primary-color);
}

.post-tag:hover{
	background: var(--primary-color);
	color: var(--white-color);
}

.post-tag.post-tag-project{
	background: transparent;
	border: 1px solid var(--divider-color);
	text-transform: none;
	letter-spacing: 0;
}

.post-date{
	display: block;
	margin-top: 8px;
	font-size: 14px;
	color: var(--text-color);
}

/************************************/
/**** 13. Форма и офис продаж    ****/
/************************************/

.contacts-section{
	padding: 100px 0 140px;
	background: var(--secondary-color);
}

.lead-form-box{
	background: var(--white-color);
	border-radius: 20px;
	padding: 45px;
	margin-bottom: 30px;
	height: calc(100% - 30px);
}

.lead-form-box h2{
	font-size: 36px;
	margin-bottom: 10px;
}

.lead-form-box > p{
	margin-bottom: 30px;
}

.lead-form .form-control{
	background: var(--secondary-color);
}

.contact-method{
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 5px 0 10px;
	padding: 0;
	border: none;
}

.contact-method legend{
	float: none;
	width: 100%;
	margin-bottom: 8px;
	font-family: var(--condensed-font);
	font-weight: 700;
	font-size: 15px;
	text-transform: uppercase;
	letter-spacing: 1px;
	color: var(--primary-color);
}

.contact-method label{
	margin: 0;
	cursor: pointer;
}

.contact-method span{
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px 18px;
	border-radius: 30px;
	border: 1px solid var(--divider-color);
	font-family: var(--accent-font);
	font-weight: 800;
	font-size: 14px;
	color: var(--primary-color);
	transition: all 0.2s ease-out;
}

.contact-method span i{
	color: var(--accent-color);
}

.contact-method input:checked + span{
	background: var(--primary-color);
	border-color: var(--primary-color);
	color: var(--white-color);
}

.contact-method input:checked + span i{
	color: var(--white-color);
}

.lead-form .btn-default{
	margin-top: 25px;
}

/* Офис продаж — светлая карточка в стиле соседней формы */
.sales-office{
	background: var(--white-color);
	color: var(--text-color);
	border-radius: 20px;
	padding: 45px 40px;
	margin-bottom: 30px;
	height: calc(100% - 30px);
	display: flex;
	flex-direction: column;
}

.sales-office h3{
	color: var(--primary-color);
	font-size: 28px;
	margin-bottom: 25px;
}

.sales-office-info{
	list-style: none;
	padding: 0;
	margin: 0 0 30px;
}

.sales-office-info li{
	display: flex;
	gap: 16px;
	padding: 14px 0;
	border-bottom: 1px solid var(--divider-color);
}

.sales-office-info li:last-child{
	border-bottom: none;
}

.sales-office-info i{
	flex-shrink: 0;
	width: 22px;
	margin-top: 4px;
	color: var(--accent-color);
	font-size: 18px;
	text-align: center;
}

.sales-office-info span{
	display: block;
	font-size: 13px;
	color: var(--text-color);
}

.sales-office-info strong{
	font-weight: 700;
	color: var(--primary-color);
}

.sales-office-info a{
	color: var(--primary-color);
}

.sales-office-info a:hover{
	color: var(--accent-color);
}

.sales-office-buttons{
	margin-top: auto;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

/************************************/
/**** 14. Подвал                 ****/
/************************************/

.newsletter-form .form-check-consent{
	margin-top: 10px;
}

.footer-info-box p a{
	color: inherit;
}

.footer-info-box p a:hover{
	color: var(--divider-color);
}

.footer-legal p{
	font-size: 14px;
	line-height: 1.5em;
	margin-bottom: 6px;
}

.footer-legal-links{
	list-style: none;
	padding: 0;
	margin: 0;
	columns: 2;
	column-gap: 30px;
}

.footer-legal-links li{
	break-inside: avoid;
	margin-bottom: 6px;
	font-size: 14px;
	line-height: 1.4em;
}

.footer-legal-links a{
	color: var(--text-color);
	transition: color 0.3s ease-out;
}

.footer-legal-links a:hover{
	color: var(--accent-color);
}

.footer-disclaimer{
	font-size: 13px;
	line-height: 1.5em;
	color: var(--text-color);
	opacity: 0.8;
	margin: 15px 0 0;
	padding-top: 15px;
	border-top: 1px solid var(--divider-color);
}

/************************************/
/**** 15. Мобильная панель и др. ****/
/************************************/

.mobile-bottom-bar{
	display: none;
}

.rsk-popup{
	position: relative;
	max-width: 460px;
	margin: 20px auto;
	padding: 40px;
	background: var(--white-color);
	border-radius: 20px;
}

.rsk-popup-title{
	font-size: 28px;
	margin-bottom: 10px;
}

.rsk-popup .form-control{
	background: var(--secondary-color);
}

.rsk-popup .btn-default{
	width: 100%;
	margin-top: 20px;
}

.rsk-popup .mfp-close{
	color: var(--primary-color);
	opacity: 1;
	top: 10px;
	right: 10px;
}

.mfp-bg{
	background: var(--primary-color);
	opacity: 0.85;
}

.cookie-banner{
	position: fixed;
	left: 20px;
	bottom: 20px;
	z-index: 999;
	max-width: 560px;
	display: flex;
	align-items: center;
	gap: 20px;
	padding: 20px 25px;
	background: var(--white-color);
	border-radius: 20px;
	box-shadow: 0 10px 40px #34333333;
}

.cookie-banner[hidden]{
	display: none;
}

.cookie-banner p{
	margin: 0;
	font-size: 14px;
	line-height: 1.4em;
}

.cookie-banner a{
	color: var(--primary-color);
	text-decoration: underline;
}

.cookie-banner-buttons{
	display: flex;
	flex-direction: column;
	gap: 8px;
	flex-shrink: 0;
}

.cookie-banner .btn-default{
	padding: 9px 20px;
	font-size: 14px;
}

.cookie-banner .btn-default.btn-border{
	padding: 7px 20px;
}

.back-to-top{
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 998;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: var(--accent-color);
	color: var(--white-color);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 18px;
	opacity: 0;
	visibility: hidden;
	transform: translateY(10px);
	transition: all 0.3s ease-out;
}

.back-to-top.visible{
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.back-to-top:hover{
	background: var(--primary-color);
	color: var(--white-color);
}

/************************************/
/****        16. Адаптив         ****/
/************************************/

/* Узкий десктоп: шапка компактнее, чтобы меню и иконки помещались в одну строку */
@media only screen and (min-width: 992px) and (max-width: 1199px){
	.navbar-brand img{
		height: 40px;
	}

	.main-menu ul li{
		margin-left: 8px;
	}

	.main-menu ul li a{
		font-size: 14px;
	}

	.header-actions{
		margin-left: 14px;
		gap: 6px;
	}

	/* Сравнение остаётся в карточках квартир; в шапке — только при достаточной ширине */
	.header-actions .header-icon-link[href="compare.html"]{
		display: none;
	}
}

/* Номер телефона текстом, пока хватает места; на узких экранах — иконка */
@media only screen and (max-width: 1259px){
	.header-phone span{
		display: none;
	}

	.header-phone{
		width: 44px;
		height: 44px;
		margin-right: 0;
		justify-content: center;
		border-radius: 50%;
		background: var(--secondary-color);
	}
}

@media only screen and (max-width: 1360px){
	.main-menu ul li a{
		font-size: 15px;
	}

	.header-actions{
		margin-left: 20px;
		gap: 8px;
	}
}

@media only screen and (max-width: 1199px){
	.trust-counters .counter-item h3{
		font-size: 40px;
	}

	.trust-award{
		padding: 18px;
	}
}

@media only screen and (max-width: 991px){
	body{
		padding-bottom: 68px;
	}

	.header-actions{
		display: none;
	}

	.top-offer-link{
		padding: 0 30px 0 0;
		font-size: 13px;
		text-align: left;
	}

	.top-offer-bar .container{
		justify-content: flex-start;
	}

	.hero-content .section-title h1,
	.hero-content .section-title h2{
		font-size: 36px;
	}

	.quick-search-types{
		padding-bottom: 15px;
	}

	.quick-search-label{
		margin-top: 5px;
	}

	.room-chips{
		margin-bottom: 15px;
	}

	.section-link{
		text-align: left;
		margin: -20px 0 40px;
	}

	.projects-map{
		height: 420px;
	}

	.flats-month,
	.purchase-methods,
	.promo-section,
	.construction-progress{
		padding: 60px 0 30px;
	}

	.advantages-tabs-section,
	.trust-section{
		padding: 60px 0;
	}

	.advantages-tabs{
		grid-template-columns: 1fr;
		gap: 15px;
	}

	.advantages-nav{
		flex-direction: row;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
	}

	.advantages-nav::-webkit-scrollbar{
		display: none;
	}

	.advantages-nav button{
		flex-shrink: 0;
		padding: 12px 20px;
		font-size: 16px;
	}

	.advantages-nav button:after{
		display: none;
	}

	.advantages-panel{
		min-height: 0;
	}

	.advantages-panel figure,
	.advantages-panel figure img{
		position: relative;
		height: 300px;
	}

	.advantages-panel-content{
		position: relative;
		left: 0;
		bottom: 0;
		max-width: none;
		border-radius: 0;
	}

	.trust-counters{
		margin-top: 40px;
	}

	.trust-awards{
		grid-template-columns: 1fr;
		gap: 15px;
	}

	.contacts-section{
		padding: 60px 0 100px;
	}

	.lead-form-box,
	.sales-office{
		padding: 30px;
		height: auto;
	}

	.lead-form-box h2{
		font-size: 28px;
	}

	.mortgage-calc{
		padding: 30px;
	}

	.footer-legal-links{
		columns: 1;
		margin-top: 15px;
	}

	/* Нижняя панель навигации */
	.mobile-bottom-bar{
		display: flex;
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 997;
		height: 68px;
		padding: 0 6px env(safe-area-inset-bottom);
		background: var(--white-color);
		box-shadow: 0 -4px 20px #3433331f;
		align-items: center;
		justify-content: space-around;
	}

	.mobile-bottom-bar a{
		position: relative;
		flex: 1;
		display: flex;
		flex-direction: column;
		align-items: center;
		gap: 3px;
		font-size: 12px;
		color: var(--primary-color);
	}

	.mobile-bottom-bar a i{
		font-size: 19px;
	}

	.mobile-bottom-bar a:hover{
		color: var(--accent-color);
	}

	.mobile-bottom-bar .header-counter{
		top: -6px;
		right: calc(50% - 22px);
	}

	.mobile-bottom-bar .mobile-bottom-call{
		flex: 0 0 56px;
		width: 56px;
		height: 56px;
		margin-top: -26px;
		border-radius: 50%;
		background: var(--accent-color);
		color: var(--white-color);
		justify-content: center;
		box-shadow: 0 6px 16px #c1121f66;
	}

	.mobile-bottom-bar .mobile-bottom-call:hover{
		color: var(--white-color);
	}

	.cookie-banner{
		bottom: 80px;
	}

	.back-to-top{
		bottom: 82px;
	}
}

@media only screen and (max-width: 767px){
	.hero-content .section-title h1,
	.hero-content .section-title h2{
		font-size: 30px;
	}

	.quick-search-types span{
		padding: 8px 14px;
		font-size: 14px;
	}

	.view-switch button{
		padding: 8px 14px;
	}

	.purchase-item{
		padding: 16px;
		gap: 14px;
	}

	.purchase-item .icon-box{
		flex-basis: 46px;
		width: 46px;
		height: 46px;
		font-size: 18px;
	}

	.purchase-item-content h3{
		font-size: 17px;
	}

	.purchase-item-value{
		font-size: 20px;
	}

	.calc-result{
		flex-direction: column;
		gap: 10px;
	}

	.calc-result-item strong{
		font-size: 26px;
	}

	.lead-form-box,
	.sales-office{
		padding: 25px 20px;
	}

	.rsk-popup{
		padding: 30px 20px;
	}

	.cookie-banner{
		left: 10px;
		right: 10px;
		flex-direction: column;
		align-items: stretch;
		gap: 12px;
	}

	.cookie-banner-buttons{
		flex-direction: row;
	}

	.cookie-banner-buttons .btn-default{
		flex: 1;
	}

	.back-to-top{
		right: 12px;
		width: 42px;
		height: 42px;
	}
}

@media only screen and (max-width: 575px){
	.navbar-brand img{
		height: 32px;
		max-height: 32px;
	}

	.top-offer-label{
		display: none;
	}

	.trust-counters .counter-item{
		padding: 20px;
	}

	.trust-counters .counter-item h3{
		font-size: 30px;
	}

	.trust-counters .counter-item p{
		font-size: 14px;
		line-height: 1.3em;
	}
}
