/* ============================================================
   KARLUU — дизайн-система лендинга апарт-комплекса
   v2 «Дом и природа»: тёплый крем + лесная зелень + терракота.
   Человеческая подача под застройщика: антиква Spectral в
   заголовках, Manrope в тексте, фото вместо «техно»-декора.
   ============================================================ */

:root {
	/* Палитра */
	--paper: #F7F2E8;
	--surface: #FFFDF8;
	--ink: #23402F;
	--ink-2: #2C4F3A;
	--accent: #B85C38;
	--accent-strong: #9A4A2A;
	--accent-ink: #FFFFFF;
	--accent-soft: rgba(184, 92, 56, 0.10);
	--accent-on-dark: #E09A6B;
	--sunset: linear-gradient(115deg, #C86A3D 0%, #DFA05A 100%);
	--sunset-soft: linear-gradient(115deg, rgba(200, 106, 61, 0.16), rgba(223, 160, 90, 0.16));

	/* Семантические переменные (светлая секция) */
	--bg: var(--paper);
	--fg: var(--ink);
	--fg-muted: rgba(35, 64, 47, 0.74);
	--line: rgba(35, 64, 47, 0.14);
	--card: var(--surface);

	/* Типографика */
	--font: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	--display: 'Spectral', 'Manrope', serif;
	--mono: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

	/* Геометрия */
	--r-lg: 22px;
	--r-md: 16px;
	--r-sm: 12px;
	--container: 1280px;

	/* Движение */
	--ease: cubic-bezier(0.22, 1, 0.36, 1);
	--shadow-card: 0 2px 6px rgba(35, 64, 47, 0.05), 0 18px 44px -18px rgba(35, 64, 47, 0.16);
	--shadow-lift: 0 6px 14px rgba(35, 64, 47, 0.08), 0 30px 60px -20px rgba(35, 64, 47, 0.26);
	--shadow-glow: 0 0 0 1px rgba(184, 92, 56, 0.30), 0 12px 40px -8px rgba(184, 92, 56, 0.45);
}

/* ---------- База ---------- */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	margin: 0;
	font-family: var(--font);
	font-weight: 400;
	font-size: 16px;
	line-height: 1.6;
	color: var(--ink);
	background: var(--paper);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

img, video, svg { display: block; max-width: 100%; }
img { height: auto; }

a { color: inherit; text-decoration: none; }

button {
	font-family: inherit;
	cursor: pointer;
	border: 0;
	background: none;
	padding: 0;
	color: inherit;
}

input, select, textarea { font-family: inherit; font-size: inherit; }

::selection { background: var(--accent); color: #fff; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.hidden { display: none !important; }

/* ---------- Утилиты типографики ---------- */

.mono {
	font-family: var(--mono);
	font-feature-settings: 'tnum' 1;
	font-weight: 600;
	letter-spacing: 0;
}

.text-gradient {
	background: var(--sunset);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: transparent;
}

.h1, .h2 {
	font-family: var(--display);
	font-weight: 600;
	line-height: 1.12;
	letter-spacing: -0.01em;
	margin: 0;
}

.h1 { font-size: clamp(2.6rem, 6.2vw, 5.4rem); }
.h2 { font-size: clamp(2rem, 4.2vw, 3.4rem); }

.lead {
	font-size: clamp(1.05rem, 1.6vw, 1.25rem);
	line-height: 1.55;
	color: var(--fg-muted);
	margin: 0;
}

/* ---------- Каркас ---------- */

.container {
	max-width: var(--container);
	margin-inline: auto;
	padding-inline: clamp(20px, 4vw, 64px);
}

.section {
	position: relative;
	padding-block: clamp(72px, 9vw, 128px);
	background: var(--bg);
	color: var(--fg);
}

.section--dark {
	--bg: var(--ink);
	--fg: #F3EEE3;
	--fg-muted: rgba(243, 238, 227, 0.74);
	--line: rgba(243, 238, 227, 0.16);
	--card: rgba(243, 238, 227, 0.05);
}

.section--tint { --bg: #EFE8D8; }

.section-head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px 48px;
	margin-bottom: clamp(36px, 5vw, 64px);
}

.section-head__main { max-width: 720px; }

.section-head__sub {
	margin-top: 16px;
	max-width: 560px;
}

.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-family: var(--font);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--accent-strong);
	margin-bottom: 18px;
}

.section--dark .eyebrow { color: var(--accent-on-dark); }

.eyebrow::before {
	content: '';
	width: 26px;
	height: 1px;
	background: currentColor;
}

.eyebrow__num { opacity: 0.55; }

/* ---------- Кнопки ---------- */

.btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 15px 30px;
	border-radius: 999px;
	font-weight: 600;
	font-size: 15px;
	line-height: 1.2;
	white-space: nowrap;
	transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s, color 0.25s, border-color 0.25s;
}

.btn:active { transform: scale(0.97); }

.btn--primary {
	background: var(--accent);
	color: var(--accent-ink);
}

.btn--primary:hover {
	background: var(--accent-strong);
	color: #fff;
	box-shadow: var(--shadow-glow);
	transform: translateY(-2px);
}

.btn--dark {
	background: var(--ink);
	color: #EAF4F0;
}

.btn--dark:hover { background: var(--ink-2); transform: translateY(-2px); }

.btn--ghost {
	border: 1px solid var(--line);
	color: var(--fg);
	background: transparent;
}

.btn--ghost:hover { border-color: var(--fg); transform: translateY(-2px); }

.btn--lg { padding: 18px 38px; font-size: 16px; }
.btn--sm { padding: 10px 20px; font-size: 13.5px; }

.btn svg { width: 18px; height: 18px; flex: none; }

/* ---------- Чипы ---------- */

.chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 18px;
	border-radius: 999px;
	border: 1px solid var(--line);
	font-family: var(--mono);
	font-size: 13px;
	font-weight: 500;
	color: var(--fg-muted);
	transition: all 0.22s var(--ease);
}

.chip:hover { border-color: var(--accent); color: var(--fg); }

.chip.is-active {
	background: var(--ink);
	border-color: var(--ink);
	color: #EAF4F0;
}

.section--dark .chip.is-active { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

.chip__count {
	font-size: 11px;
	opacity: 0.55;
}

/* ============================================================
   HEADER
   ============================================================ */

.header {
	position: fixed;
	inset: 0 0 auto 0;
	z-index: 60;
	color: #EAF4F0;
	transition: background 0.4s var(--ease), color 0.4s, box-shadow 0.4s, border-color 0.4s;
	border-bottom: 1px solid transparent;
}

.header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding-block: 18px;
	transition: padding 0.4s var(--ease);
}

.header.is-scrolled {
	background: rgba(244, 240, 230, 0.85);
	backdrop-filter: blur(18px);
	-webkit-backdrop-filter: blur(18px);
	color: var(--ink);
	border-bottom-color: var(--line);
}

.header.is-scrolled .header__inner { padding-block: 12px; }

.header__logo {
	font-size: 22px;
	font-weight: 800;
	letter-spacing: -0.02em;
	white-space: nowrap;
}

.header__logo::after { content: '.'; color: var(--accent-on-dark); }

.header__menu {
	display: none;
	align-items: center;
	gap: clamp(18px, 2.4vw, 34px);
	list-style: none;
	margin: 0;
	padding: 0;
}

.header__menu a {
	position: relative;
	font-size: 14px;
	font-weight: 500;
	white-space: nowrap;
	opacity: 0.85;
	transition: opacity 0.2s;
	padding-block: 6px;
}

.header__menu a::after {
	content: '';
	position: absolute;
	left: 0;
	bottom: 0;
	width: 100%;
	height: 1.5px;
	background: var(--accent);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.3s var(--ease);
}

.header__menu a:hover { opacity: 1; }
.header__menu a:hover::after { transform: scaleX(1); }

.header__actions { display: none; align-items: center; gap: 18px; }

.header__phone {
	display: flex;
	align-items: center;
	gap: 8px;
	font-family: var(--mono);
	font-size: 13.5px;
	font-weight: 600;
	white-space: nowrap;
	transition: color 0.2s;
}

.header__phone:hover { color: var(--accent-on-dark); }
.header__phone svg { width: 16px; height: 16px; }

.header__burger {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border-radius: 12px;
	border: 1px solid currentColor;
	opacity: 0.9;
	transition: opacity 0.2s;
}

.header__burger:hover { opacity: 1; }
.header__burger svg { width: 20px; height: 20px; }

@media (min-width: 1180px) {
	.header__menu, .header__actions { display: flex; }
	.header__burger { display: none; }
}

/* Прогресс скролла */
.scroll-progress {
	position: fixed;
	top: 0;
	left: 0;
	z-index: 70;
	width: 100%;
	height: 2.5px;
	background: transparent;
	pointer-events: none;
}

.scroll-progress i {
	display: block;
	height: 100%;
	width: 0;
	background: var(--sunset);
}

/* Мобильное меню */
.mobile-menu {
	position: fixed;
	inset: 0;
	z-index: 65;
	visibility: hidden;
	pointer-events: none;
	transition: visibility 0s 0.5s;
}

.mobile-menu.is-open {
	visibility: visible;
	pointer-events: auto;
	transition-delay: 0s;
}

.mobile-menu__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(35, 64, 47, 0.5);
	backdrop-filter: blur(6px);
	opacity: 0;
	transition: opacity 0.4s;
}

.mobile-menu.is-open .mobile-menu__backdrop { opacity: 1; }

.mobile-menu__panel {
	position: absolute;
	top: 0;
	right: 0;
	height: 100%;
	width: min(400px, 88vw);
	background: var(--ink);
	color: #EAF4F0;
	display: flex;
	flex-direction: column;
	padding: 96px 32px 32px;
	transform: translateX(100%);
	transition: transform 0.5s var(--ease);
}

.mobile-menu.is-open .mobile-menu__panel { transform: translateX(0); }

.mobile-menu__panel nav { display: flex; flex-direction: column; }

.mobile-menu__panel nav a {
	display: flex;
	align-items: baseline;
	gap: 14px;
	padding: 14px 0;
	font-size: 20px;
	font-weight: 600;
	border-bottom: 1px solid rgba(243, 238, 227, 0.1);
	transition: color 0.2s, padding-left 0.3s var(--ease);
}

.mobile-menu__panel nav a:hover { color: var(--accent-on-dark); padding-left: 8px; }

.mobile-menu__panel nav a .mono {
	font-size: 11px;
	color: var(--accent-on-dark);
	opacity: 0.7;
}

.mobile-menu__footer {
	margin-top: auto;
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.mobile-menu__footer .header__phone { font-size: 16px; }

/* Навигация-точки (десктоп) */
.dots-nav {
	position: fixed;
	right: 22px;
	top: 50%;
	transform: translateY(-50%);
	z-index: 55;
	display: none;
	flex-direction: column;
	gap: 12px;
}

@media (min-width: 1440px) { .dots-nav { display: flex; } }

.dots-nav a {
	position: relative;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	border: 1.5px solid rgba(35, 64, 47, 0.35);
	transition: all 0.25s var(--ease);
}

.dots-nav a:hover, .dots-nav a.is-active {
	background: var(--accent);
	border-color: var(--accent);
	transform: scale(1.25);
}

.dots-nav a::before {
	content: attr(data-label);
	position: absolute;
	right: 22px;
	top: 50%;
	transform: translateY(-50%) translateX(6px);
	font-family: var(--mono);
	font-size: 11px;
	font-weight: 500;
	white-space: nowrap;
	color: var(--ink);
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 8px;
	padding: 5px 10px;
	opacity: 0;
	pointer-events: none;
	transition: all 0.25s var(--ease);
	box-shadow: var(--shadow-card);
}

.dots-nav a:hover::before { opacity: 1; transform: translateY(-50%) translateX(0); }

/* ============================================================
   HERO
   ============================================================ */

.hero {
	position: relative;
	min-height: 100svh;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: var(--ink);
	color: #EAF4F0;
}

.hero__media {
	position: absolute;
	inset: 0;
	z-index: 0;
}

.hero__media video,
.hero__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0.55;
}

.hero__shade {
	position: absolute;
	inset: 0;
	z-index: 1;
	background:
		linear-gradient(180deg, rgba(35, 64, 47, 0.62) 0%, rgba(35, 64, 47, 0.38) 45%, rgba(35, 64, 47, 0.94) 100%);
}

/* Мягкое тёплое свечение поверх фото */
.hero__aurora {
	position: absolute;
	inset: 0;
	z-index: 1;
	overflow: hidden;
	filter: blur(90px);
	opacity: 0.7;
}

.hero__aurora i {
	position: absolute;
	border-radius: 50%;
	will-change: transform;
}

.hero__aurora i:nth-child(1) {
	width: 44vw;
	height: 44vw;
	left: -14vw;
	top: -16vw;
	background: radial-gradient(circle, rgba(76, 116, 88, 0.55), transparent 65%);
	animation: aurora-a 18s var(--ease) infinite alternate;
}

.hero__aurora i:nth-child(2) {
	width: 36vw;
	height: 36vw;
	right: -10vw;
	top: 8vw;
	background: radial-gradient(circle, rgba(200, 106, 61, 0.38), transparent 65%);
	animation: aurora-b 21s var(--ease) infinite alternate;
}

.hero__aurora i:nth-child(3) {
	width: 28vw;
	height: 28vw;
	left: 36vw;
	bottom: -16vw;
	background: radial-gradient(circle, rgba(223, 160, 90, 0.28), transparent 65%);
	animation: aurora-a 24s var(--ease) infinite alternate-reverse;
}

@keyframes aurora-a {
	from { transform: translate(0, 0) scale(1); }
	to { transform: translate(6vw, 4vw) scale(1.15); }
}

@keyframes aurora-b {
	from { transform: translate(0, 0) scale(1.1); }
	to { transform: translate(-5vw, 5vw) scale(0.95); }
}

/* Тонкая сетка поверх — отключена в v2 (человеческая подача) */
.hero__grid { display: none; }

.hero__inner {
	position: relative;
	z-index: 2;
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding-top: 120px;
	padding-bottom: 96px;
}

.hero__layout {
	display: grid;
	grid-template-columns: 1fr;
	gap: 48px;
	align-items: end;
}

@media (min-width: 1024px) {
	.hero__layout { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; }
}

.hero__badge {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 9px 18px;
	border-radius: 999px;
	border: 1px solid rgba(243, 238, 227, 0.24);
	background: rgba(243, 238, 227, 0.08);
	backdrop-filter: blur(10px);
	font-family: var(--font);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.04em;
	margin-bottom: 28px;
}

.hero__badge-dot {
	position: relative;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--accent-on-dark);
	flex: none;
}

.hero__badge-dot::after {
	content: '';
	position: absolute;
	inset: -4px;
	border-radius: 50%;
	border: 1px solid var(--accent-on-dark);
	animation: ping 1.8s var(--ease) infinite;
}

@keyframes ping {
	0% { transform: scale(0.6); opacity: 1; }
	100% { transform: scale(1.6); opacity: 0; }
}

.hero__title {
	font-family: var(--display);
	font-size: clamp(2.7rem, 6.2vw, 5.4rem);
	font-weight: 600;
	line-height: 1.08;
	letter-spacing: -0.015em;
	margin: 0 0 26px;
}

.hero__desc {
	font-size: clamp(1.02rem, 1.5vw, 1.2rem);
	line-height: 1.6;
	color: rgba(243, 238, 227, 0.85);
	max-width: 560px;
	margin: 0 0 22px;
}

.hero__addr {
	display: flex;
	align-items: center;
	gap: 8px;
	font-family: var(--font);
	font-size: 13.5px;
	font-weight: 500;
	color: rgba(243, 238, 227, 0.75);
	margin-bottom: 36px;
}

.hero__addr svg { width: 15px; height: 15px; color: var(--accent-on-dark); }

.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }

.hero .btn--ghost { border-color: rgba(243, 238, 227, 0.3); color: #EAF4F0; }
.hero .btn--ghost:hover { border-color: #EAF4F0; }

/* Метрики внизу hero */
.hero__metrics {
	position: relative;
	z-index: 2;
	border-top: 1px solid rgba(243, 238, 227, 0.14);
}

.hero__metrics-row {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 900px) {
	.hero__metrics-row { grid-template-columns: repeat(4, 1fr); }
}

.hero__metric {
	padding: 26px clamp(20px, 3vw, 40px) 30px;
	border-left: 1px solid rgba(243, 238, 227, 0.14);
}

.hero__metric:first-child { border-left: 0; padding-left: 0; }

@media (max-width: 899px) {
	.hero__metric:nth-child(odd) { border-left: 0; padding-left: 0; }
	.hero__metric:nth-child(n+3) { border-top: 1px solid rgba(243, 238, 227, 0.14); }
}

.hero__metric-value {
	font-family: var(--mono);
	font-size: clamp(20px, 2.4vw, 28px);
	font-weight: 700;
	letter-spacing: -0.02em;
}

.hero__metric-value em { font-style: normal; color: var(--accent-on-dark); }

.hero__metric-label {
	font-size: 13px;
	color: rgba(243, 238, 227, 0.68);
	margin-top: 6px;
}

/* Панель показателей справа */
.invest-panel {
	position: relative;
	border-radius: var(--r-lg);
	border: 1px solid rgba(243, 238, 227, 0.16);
	background: rgba(243, 238, 227, 0.06);
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
	padding: 26px;
	overflow: hidden;
}

.invest-panel::before {
	content: '';
	position: absolute;
	inset: 0 0 auto 0;
	height: 2px;
	background: var(--sunset);
}

.invest-panel__head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px 12px;
	margin-bottom: 20px;
}

.invest-panel__title {
	font-family: var(--font);
	font-size: 12.5px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: rgba(243, 238, 227, 0.72);
}

.invest-panel__live {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 7px 14px;
	border-radius: 999px;
	border: 1px solid rgba(243, 238, 227, 0.24);
	background: rgba(243, 238, 227, 0.08);
	font-family: var(--font);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.02em;
	color: #F3EEE3;
	white-space: nowrap;
	flex: none;
}

.invest-panel__live::before {
	content: '';
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #8FCB9B;
	flex: none;
	animation: pulse-dot 2s infinite;
}

.invest-panel__live.is-closed { color: rgba(243, 238, 227, 0.62); }

.invest-panel__live.is-closed::before {
	background: #B08568;
	animation: none;
}

@keyframes pulse-dot { 50% { opacity: 0.35; } }

.invest-panel__rows { display: flex; flex-direction: column; }

.invest-panel__row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	padding: 13px 0;
	border-top: 1px dashed rgba(243, 238, 227, 0.14);
}

.invest-panel__row dt {
	font-size: 13.5px;
	color: rgba(243, 238, 227, 0.6);
}

.invest-panel__row dd {
	margin: 0;
	font-family: var(--mono);
	font-size: 16px;
	font-weight: 600;
	white-space: nowrap;
}

.invest-panel__row dd em { font-style: normal; color: var(--accent-on-dark); }

.invest-panel__spark {
	display: flex;
	align-items: flex-end;
	gap: 5px;
	height: 44px;
	margin: 18px 0 6px;
}

.invest-panel__spark i {
	flex: 1;
	border-radius: 3px 3px 1px 1px;
	background: linear-gradient(180deg, #7FA88A, rgba(127, 168, 138, 0.3));
	min-height: 12%;
	transform-origin: bottom;
	animation: spark-in 0.9s var(--ease) both;
}

.invest-panel__spark i:nth-child(7),
.invest-panel__spark i:nth-child(8),
.invest-panel__spark i:nth-child(9) {
	background: var(--sunset);
}

.invest-panel__spark i:nth-child(1) { animation-delay: 0.05s; }
.invest-panel__spark i:nth-child(2) { animation-delay: 0.1s; }
.invest-panel__spark i:nth-child(3) { animation-delay: 0.15s; }
.invest-panel__spark i:nth-child(4) { animation-delay: 0.2s; }
.invest-panel__spark i:nth-child(5) { animation-delay: 0.25s; }
.invest-panel__spark i:nth-child(6) { animation-delay: 0.3s; }
.invest-panel__spark i:nth-child(7) { animation-delay: 0.35s; }
.invest-panel__spark i:nth-child(8) { animation-delay: 0.4s; }
.invest-panel__spark i:nth-child(9) { animation-delay: 0.45s; }
.invest-panel__spark i:nth-child(10) { animation-delay: 0.5s; }
.invest-panel__spark i:nth-child(11) { animation-delay: 0.55s; }
.invest-panel__spark i:nth-child(12) { animation-delay: 0.6s; }

@keyframes spark-in {
	from { transform: scaleY(0); opacity: 0; }
	to { transform: scaleY(1); opacity: 1; }
}

.invest-panel__spark-labels {
	display: flex;
	justify-content: space-between;
	font-family: var(--font);
	font-size: 10.5px;
	font-weight: 500;
	color: rgba(243, 238, 227, 0.55);
	margin-bottom: 18px;
}

.invest-panel .btn { width: 100%; }

/* Скролл-подсказка */
.hero__scroll {
	position: absolute;
	bottom: 22px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 3;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	font-family: var(--font);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: rgba(243, 238, 227, 0.62);
	transition: color 0.2s;
}

.hero__scroll:hover { color: #EAF4F0; }

.hero__scroll svg { width: 16px; height: 16px; animation: bounce-y 1.8s infinite; }

@keyframes bounce-y {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(5px); }
}

@media (max-width: 1023px) {
	.hero__scroll { display: none; }
}

/* ============================================================
   MARQUEE — дата-тикер
   ============================================================ */

.marquee {
	overflow: hidden;
	background: var(--ink);
	color: #EAF4F0;
	border-block: 1px solid rgba(243, 238, 227, 0.08);
	padding-block: 18px;
}

.marquee__track {
	display: flex;
	align-items: center;
	gap: 48px;
	width: max-content;
	animation: marquee 36s linear infinite;
}

.marquee:hover .marquee__track { animation-play-state: paused; }

@keyframes marquee {
	to { transform: translateX(-50%); }
}

.marquee__item {
	display: flex;
	align-items: center;
	gap: 48px;
	font-family: var(--mono);
	font-size: 14px;
	font-weight: 500;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	white-space: nowrap;
}

.marquee__item i {
	font-style: normal;
	color: var(--accent-on-dark);
}

.marquee__item--outline {
	color: transparent;
	-webkit-text-stroke: 1px rgba(243, 238, 227, 0.55);
}

/* ============================================================
   ABOUT — сплит + факты-счётчики
   ============================================================ */

.about__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 48px;
	align-items: start;
}

@media (min-width: 1024px) {
	.about__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 72px; }
}

.about__text {
	font-size: 16.5px;
	line-height: 1.7;
	color: var(--fg-muted);
}

.about__text p { margin: 0 0 1.2em; }
.about__text strong { color: var(--fg); font-weight: 600; }

.about__media {
	position: relative;
	border-radius: var(--r-lg);
	overflow: hidden;
	aspect-ratio: 4 / 3;
}

.about__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 1.2s var(--ease);
}

.about__media:hover img { transform: scale(1.04); }

.about__badge {
	position: absolute;
	left: 20px;
	bottom: 20px;
	display: flex;
	flex-direction: column;
	gap: 2px;
	background: rgba(35, 64, 47, 0.72);
	backdrop-filter: blur(12px);
	color: #EAF4F0;
	border-radius: var(--r-md);
	padding: 14px 20px;
	border: 1px solid rgba(243, 238, 227, 0.16);
}

.about__badge-label {
	font-family: var(--mono);
	font-size: 10.5px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: rgba(243, 238, 227, 0.6);
}

.about__badge-value { font-weight: 700; font-size: 18px; letter-spacing: -0.02em; }

/* Факты */
.facts {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1px;
	background: var(--line);
	border: 1px solid var(--line);
	border-radius: var(--r-lg);
	overflow: hidden;
	margin-top: 48px;
}

@media (min-width: 768px) {
	.facts { grid-template-columns: repeat(4, 1fr); }
}

.facts__item {
	background: var(--card);
	padding: 26px 24px;
	transition: background 0.3s;
}

.facts__item:hover { background: var(--accent-soft); }

.facts__value {
	font-family: var(--mono);
	font-size: clamp(24px, 2.8vw, 34px);
	font-weight: 700;
	letter-spacing: -0.03em;
	line-height: 1.1;
}

.facts__value small {
	font-size: 0.55em;
	font-weight: 500;
	color: var(--accent-strong);
	margin-left: 4px;
}

.facts__label {
	font-size: 13px;
	color: var(--fg-muted);
	margin-top: 8px;
}

/* ============================================================
   WHY — бенто причины с иконками
   ============================================================ */

.bento {
	display: grid;
	grid-template-columns: 1fr;
	gap: 16px;
}

@media (min-width: 768px) { .bento { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .bento { grid-template-columns: repeat(3, 1fr); gap: 20px; } }

.bento__card {
	position: relative;
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: var(--r-lg);
	padding: 30px 28px;
	overflow: hidden;
	transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.3s;
}

.bento__card:hover {
	transform: translateY(-5px);
	box-shadow: var(--shadow-lift);
	border-color: rgba(184, 92, 56, 0.4);
}

.bento__card-num {
	position: absolute;
	top: 22px;
	right: 24px;
	font-family: var(--mono);
	font-size: 12px;
	font-weight: 500;
	color: var(--fg-muted);
	opacity: 0.6;
}

.bento__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	border-radius: 15px;
	background: var(--accent-soft);
	color: var(--accent-strong);
	margin-bottom: 22px;
	transition: all 0.35s var(--ease);
}

.bento__card:hover .bento__icon {
	background: var(--ink);
	color: var(--accent-on-dark);
	transform: rotate(-6deg) scale(1.05);
}

.bento__icon svg { width: 24px; height: 24px; }

.bento__title {
	font-size: 19px;
	font-weight: 700;
	letter-spacing: -0.02em;
	margin: 0 0 10px;
}

.bento__text {
	font-size: 14.5px;
	line-height: 1.6;
	color: var(--fg-muted);
	margin: 0;
}

/* Тёмный вариант бенто (для секции why на инке при необходимости) */
.section--dark .bento__card:hover { border-color: rgba(184, 92, 56, 0.55); }
.section--dark .bento__icon { background: rgba(224, 154, 107, 0.16); color: var(--accent-on-dark); }
.section--dark .bento__card:hover .bento__icon { background: var(--accent); color: var(--accent-ink); }

/* ============================================================
   ADVANTAGES — бенто с фото (первая карточка широкая)
   ============================================================ */

.adv-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 16px;
}

@media (min-width: 768px) {
	.adv-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
	.adv-card--wide { grid-column: span 2; }
}

@media (min-width: 1100px) {
	.adv-grid { grid-template-columns: repeat(3, 1fr); }
	.adv-card--wide { grid-column: span 2; }
}

.adv-card {
	position: relative;
	border-radius: var(--r-lg);
	overflow: hidden;
	min-height: 340px;
	display: flex;
	align-items: flex-end;
	background: var(--ink-2);
	isolation: isolate;
}

.adv-card--wide { min-height: 400px; }

.adv-card img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	z-index: -1;
	transition: transform 1s var(--ease);
}

.adv-card::after {
	content: '';
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(185deg, rgba(35, 64, 47, 0) 30%, rgba(35, 64, 47, 0.85) 100%);
	transition: opacity 0.4s;
}

.adv-card:hover img { transform: scale(1.06); }

.adv-card__body {
	padding: 26px;
	color: #EAF4F0;
	width: 100%;
}

.adv-card__tag {
	display: inline-block;
	font-family: var(--mono);
	font-size: 10.5px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--accent-on-dark);
	background: rgba(35, 64, 47, 0.6);
	backdrop-filter: blur(8px);
	border: 1px solid rgba(184, 92, 56, 0.35);
	border-radius: 999px;
	padding: 5px 12px;
	margin-bottom: 14px;
}

.adv-card__title {
	font-size: 21px;
	font-weight: 700;
	letter-spacing: -0.02em;
	margin: 0 0 8px;
}

.adv-card__text {
	font-size: 14px;
	line-height: 1.55;
	color: rgba(243, 238, 227, 0.78);
	margin: 0;
	max-width: 480px;

	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	transition: all 0.4s var(--ease);
}

.adv-card:hover .adv-card__text { -webkit-line-clamp: 4; }

/* ============================================================
   LOCATION — карта + тайминги
   ============================================================ */

.location__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 24px;
	align-items: stretch;
}

@media (min-width: 1024px) {
	.location__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px; }
}

.location__map {
	position: relative;
	border-radius: var(--r-lg);
	overflow: hidden;
	min-height: 380px;
	border: 1px solid var(--line);
}

.location__map img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.location__map-pin {
	position: absolute;
	left: 50%;
	top: 46%;
	transform: translate(-50%, -100%);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
}

.location__map-pin svg {
	width: 34px;
	height: 34px;
	color: #FF7A59;
	filter: drop-shadow(0 6px 14px rgba(35, 64, 47, 0.4));
	animation: bounce-y 2.2s infinite;
}

.location__map-link {
	position: absolute;
	right: 16px;
	bottom: 16px;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: var(--ink);
	color: #EAF4F0;
	font-family: var(--mono);
	font-size: 12px;
	font-weight: 500;
	border-radius: 999px;
	padding: 10px 18px;
	transition: all 0.25s var(--ease);
	box-shadow: var(--shadow-lift);
}

.location__map-link:hover { background: var(--accent); color: var(--accent-ink); }
.location__map-link svg { width: 14px; height: 14px; }

.location__list { display: flex; flex-direction: column; }

.location__item {
	display: flex;
	align-items: center;
	gap: 18px;
	padding: 20px 4px;
	border-top: 1px solid var(--line);
	transition: padding-left 0.3s var(--ease), background 0.3s;
}

.location__item:hover { padding-left: 12px; background: var(--accent-soft); }

.location__item:last-child { border-bottom: 1px solid var(--line); }

.location__time {
	font-family: var(--mono);
	font-size: 15px;
	font-weight: 700;
	color: var(--accent-strong);
	min-width: 76px;
}

.location__name { font-size: 15.5px; font-weight: 500; }

.location__note {
	margin-top: 22px;
	font-size: 14px;
	color: var(--fg-muted);
}

/* ============================================================
   LAYOUTS — планировки: фильтры + карточки
   ============================================================ */

.layouts__filters {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 36px;
}

.layouts__features {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 28px;
	margin-bottom: 32px;
}

.layouts__feature {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	font-size: 14px;
	color: var(--fg-muted);
}

.layouts__feature svg { width: 16px; height: 16px; color: var(--accent-strong); flex: none; }

.section--dark .layouts__feature svg { color: var(--accent-on-dark); }

.layouts__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 18px;
}

@media (min-width: 720px) { .layouts__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .layouts__grid { grid-template-columns: repeat(4, 1fr); } }

.layout-card {
	position: relative;
	display: flex;
	flex-direction: column;
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: var(--r-lg);
	padding: 22px;
	transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.3s, opacity 0.3s;
}

.layout-card:hover {
	transform: translateY(-5px);
	box-shadow: var(--shadow-lift);
	border-color: rgba(184, 92, 56, 0.45);
}

.layout-card.is-hidden { display: none; }

/* На тёмной секции карточка остаётся светлой: контраст и читаемость схемы */
.section--dark .layout-card {
	--card: var(--surface);
	--fg: var(--ink);
	--fg-muted: rgba(35, 64, 47, 0.74);
	--line: rgba(35, 64, 47, 0.14);
	background: var(--card);
	color: var(--fg);
}

.layout-card__flag {
	position: absolute;
	top: 16px;
	right: 16px;
	font-family: var(--mono);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--accent-ink);
	background: var(--sunset);
	border-radius: 999px;
	padding: 4px 10px;
}

.layout-card__scheme {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 148px;
	margin-bottom: 18px;
	border-radius: var(--r-md);
	background:
		linear-gradient(rgba(35, 64, 47, 0.04) 1px, transparent 1px),
		linear-gradient(90deg, rgba(35, 64, 47, 0.04) 1px, transparent 1px);
	background-size: 18px 18px;
	color: var(--ink);
}

.layout-card__scheme svg {
	width: 132px;
	height: 132px;
	transition: transform 0.4s var(--ease);
}

.layout-card:hover .layout-card__scheme svg { transform: scale(1.07); }

/* Фото планировки вместо схемы: без фикс-высоты и сетки, ровный отступ */
.layout-card__scheme:has(img) {
	height: auto;
	background: none;
	display: block;
	overflow: hidden;
}

.layout-card__scheme img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: var(--r-md);
	transition: transform 0.5s var(--ease);
}

.layout-card:hover .layout-card__scheme img { transform: scale(1.03); }

.layout-card__rooms {
	font-size: 17px;
	font-weight: 700;
	letter-spacing: -0.02em;
}

.layout-card__meta {
	display: flex;
	align-items: center;
	gap: 10px;
	font-family: var(--mono);
	font-size: 12.5px;
	color: var(--fg-muted);
	margin-top: 6px;
}

.layout-card__price {
	font-family: var(--mono);
	font-size: 16.5px;
	font-weight: 700;
	color: var(--accent-strong);
	margin-top: 14px;
	padding-top: 14px;
	border-top: 1px dashed var(--line);
}

.layout-card__cta {
	margin-top: 14px;
	width: 100%;
}

/* ============================================================
   GALLERY — горизонтальный drag-strip
   ============================================================ */

.gallery { overflow: hidden; }

.gallery__track {
	display: flex;
	gap: 18px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	padding-bottom: 8px;
	cursor: grab;
	scrollbar-width: none;
	-ms-overflow-style: none;
}

.gallery__track::-webkit-scrollbar { display: none; }
.gallery__track.is-dragging { cursor: grabbing; scroll-snap-type: none; }

.gallery__item {
	flex: 0 0 min(78vw, 560px);
	scroll-snap-align: start;
	border-radius: var(--r-lg);
	overflow: hidden;
	aspect-ratio: 4 / 3;
	position: relative;
	user-select: none;
}

.gallery__item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	pointer-events: none;
	transition: transform 0.9s var(--ease);
}

.gallery__item:hover img { transform: scale(1.04); }

.gallery__ui {
	display: flex;
	align-items: center;
	gap: 20px;
	margin-top: 22px;
}

.gallery__bar {
	flex: 1;
	height: 2px;
	background: var(--line);
	border-radius: 2px;
	overflow: hidden;
}

.gallery__bar i {
	display: block;
	height: 100%;
	width: 20%;
	background: var(--sunset);
	border-radius: 2px;
	transition: width 0.2s linear;
}

.gallery__counter {
	font-family: var(--mono);
	font-size: 13px;
	font-weight: 600;
	color: var(--fg-muted);
	white-space: nowrap;
}

.gallery__counter em { font-style: normal; color: var(--fg); }

.gallery__nav { display: flex; gap: 8px; }

.gallery__nav button {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: 1px solid var(--line);
	color: var(--fg);
	transition: all 0.25s var(--ease);
}

.gallery__nav button:hover { background: var(--ink); border-color: var(--ink); color: var(--accent-on-dark); }
.gallery__nav button svg { width: 18px; height: 18px; }

/* ============================================================
   AMENITIES — инфраструктура списком
   ============================================================ */

.amenities__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 14px;
}

@media (min-width: 720px) { .amenities__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .amenities__grid { grid-template-columns: repeat(3, 1fr); } }

.amenity {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	padding: 20px 22px;
	border: 1px solid var(--line);
	border-radius: var(--r-md);
	background: var(--card);
	transition: all 0.3s var(--ease);
}

.amenity:hover { border-color: rgba(184, 92, 56, 0.45); transform: translateY(-3px); box-shadow: var(--shadow-card); }

.amenity svg {
	width: 20px;
	height: 20px;
	color: var(--accent-strong);
	flex: none;
	margin-top: 2px;
}

.amenity__name { font-weight: 600; font-size: 15px; }
.amenity__text { font-size: 13.5px; color: var(--fg-muted); margin-top: 3px; }

/* ============================================================
   CALC — «Калькулятор инвестора»: табы Ипотека / Доходность
   ============================================================ */

.calc {
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: calc(var(--r-lg) + 6px);
	box-shadow: var(--shadow-card);
	overflow: hidden;
}

.calc__tabs {
	display: flex;
	gap: 4px;
	padding: 8px;
	background: rgba(35, 64, 47, 0.04);
	border-bottom: 1px solid var(--line);
}

.calc__tab {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 14px 20px;
	border-radius: var(--r-md);
	font-weight: 600;
	font-size: 15px;
	color: var(--fg-muted);
	transition: all 0.3s var(--ease);
}

.calc__tab svg { width: 18px; height: 18px; }

.calc__tab.is-active {
	background: var(--ink);
	color: #EAF4F0;
	box-shadow: var(--shadow-card);
}

.calc__tab.is-active svg { color: var(--accent-on-dark); }

.calc__body {
	display: grid;
	grid-template-columns: 1fr;
	gap: 24px;
	padding: clamp(20px, 4vw, 48px);
}

@media (min-width: 1024px) {
	.calc__body { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 40px; }
	.calc__body .calc__fields { grid-column: 1; grid-row: 1; }
	.calc__body .calc__results { grid-column: 2; grid-row: 1; }
	.calc__body .calc__cta { grid-column: 2; grid-row: 2; align-self: start; }
}

/* Мобильный: поля → кнопка → результаты (всё ключевое в одном экране) */
@media (max-width: 1023px) {
	.calc__body .calc__fields { order: 1; }
	.calc__body .calc__cta { order: 2; }
	.calc__body .calc__results { order: 3; }
	.calc__fields { gap: 16px; }
	.calc-field__head { margin-bottom: 8px; }
}

.calc__panel.is-hidden { display: none; }

.calc__fields { display: flex; flex-direction: column; gap: 26px; }

.calc-field__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 12px;
}

.calc-field__label { font-size: 14.5px; font-weight: 500; color: var(--fg-muted); }

.calc-field__value {
	font-family: var(--mono);
	font-size: 17px;
	font-weight: 700;
	letter-spacing: -0.02em;
	white-space: nowrap;
}

.calc-field__value input {
	width: 130px;
	border: 0;
	border-bottom: 1.5px dashed var(--line);
	background: transparent;
	font: inherit;
	color: inherit;
	text-align: right;
	padding: 0 0 2px;
	transition: border-color 0.2s;
}

.calc-field__value input:focus { outline: none; border-bottom-color: var(--accent); }

/* Range slider */
.range {
	--p: 50%;
	appearance: none;
	-webkit-appearance: none;
	width: 100%;
	height: 26px;
	background: transparent;
	cursor: pointer;
}

.range::-webkit-slider-runnable-track {
	height: 5px;
	border-radius: 4px;
	background: linear-gradient(90deg, var(--accent) var(--p), var(--line) var(--p));
}

.range::-webkit-slider-thumb {
	-webkit-appearance: none;
	width: 22px;
	height: 22px;
	margin-top: -8.5px;
	border-radius: 50%;
	background: var(--surface);
	border: 6px solid var(--ink);
	box-shadow: 0 2px 8px rgba(35, 64, 47, 0.25);
	transition: transform 0.2s var(--ease), border-color 0.2s;
}

.range::-webkit-slider-thumb:hover { transform: scale(1.15); border-color: var(--accent); }

.range::-moz-range-track {
	height: 5px;
	border-radius: 4px;
	background: var(--line);
}

.range::-moz-range-progress {
	height: 5px;
	border-radius: 4px;
	background: var(--accent);
}

.range::-moz-range-thumb {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--surface);
	border: 6px solid var(--ink);
	box-shadow: 0 2px 8px rgba(35, 64, 47, 0.25);
	transition: transform 0.2s var(--ease), border-color 0.2s;
}

.range::-moz-range-thumb:hover { transform: scale(1.15); border-color: var(--accent); }

.calc-field__hint {
	display: flex;
	justify-content: space-between;
	font-family: var(--mono);
	font-size: 10.5px;
	color: var(--fg-muted);
	opacity: 0.75;
	margin-top: 6px;
}

/* Результаты */
.calc__results {
	display: flex;
	flex-direction: column;
	gap: 18px;
	background: var(--ink);
	color: #EAF4F0;
	border-radius: var(--r-lg);
	padding: clamp(24px, 3vw, 36px);
	position: relative;
	overflow: hidden;
}

.calc__results::before {
	content: '';
	position: absolute;
	inset: 0 0 auto 0;
	height: 2px;
	background: var(--sunset);
}

.calc__results-label {
	font-family: var(--mono);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: rgba(243, 238, 227, 0.5);
}

.calc__big {
	font-family: var(--mono);
	font-size: clamp(30px, 4vw, 44px);
	font-weight: 700;
	letter-spacing: -0.04em;
	line-height: 1.05;
}

.calc__big em { font-style: normal; color: var(--accent-on-dark); }

.calc__stat-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
}

.calc__stat {
	border: 1px solid rgba(243, 238, 227, 0.12);
	border-radius: var(--r-md);
	padding: 14px 16px;
}

.calc__stat dt {
	font-size: 12px;
	color: rgba(243, 238, 227, 0.55);
	margin-bottom: 6px;
}

.calc__stat dd {
	margin: 0;
	font-family: var(--mono);
	font-size: 16.5px;
	font-weight: 700;
	white-space: nowrap;
}

.calc__stat dd em { font-style: normal; color: var(--accent-on-dark); }

/* График сезонности (12 месяцев) */
.calc__chart {
	display: flex;
	align-items: flex-end;
	gap: 6px;
	height: 96px;
	margin-top: 6px;
}

.calc__chart i {
	flex: 1;
	border-radius: 3px 3px 1px 1px;
	background: rgba(243, 238, 227, 0.18);
	min-height: 8%;
	transition: height 0.5s var(--ease), background 0.3s;
	position: relative;
}

.calc__chart i.is-high { background: var(--sunset); }
.calc__chart i.is-mid { background: linear-gradient(180deg, #7FA88A, rgba(127, 168, 138, 0.35)); }

.calc__chart-labels {
	display: flex;
	justify-content: space-between;
	font-family: var(--mono);
	font-size: 9.5px;
	color: rgba(243, 238, 227, 0.4);
}

.calc__note {
	font-size: 12.5px;
	line-height: 1.55;
	color: rgba(243, 238, 227, 0.5);
	margin: 0;
}

.calc__cta { margin-top: 4px; }
.calc__cta .btn { width: 100%; }

/* ============================================================
   PURCHASE — шаги + способы покупки
   ============================================================ */

.purchase__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 24px;
}

@media (min-width: 1024px) {
	.purchase__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; }
}

.steps { display: flex; flex-direction: column; }

.steps__item {
	display: flex;
	gap: 22px;
	padding: 24px 0;
	border-top: 1px solid var(--line);
}

.steps__item:last-child { border-bottom: 1px solid var(--line); }

.steps__num {
	font-family: var(--mono);
	font-size: 13px;
	font-weight: 700;
	color: var(--accent-strong);
	border: 1px solid var(--accent-soft);
	background: var(--accent-soft);
	border-radius: 10px;
	width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex: none;
}

.steps__title { font-size: 17px; font-weight: 700; letter-spacing: -0.02em; margin: 0 0 6px; }
.steps__text { font-size: 14.5px; color: var(--fg-muted); margin: 0; max-width: 480px; }

.pay-opts { display: flex; flex-direction: column; gap: 14px; }

.pay-opt {
	display: flex;
	align-items: center;
	gap: 18px;
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: var(--r-md);
	padding: 20px 22px;
	transition: all 0.3s var(--ease);
}

.pay-opt:hover { border-color: rgba(184, 92, 56, 0.45); transform: translateX(6px); }

.pay-opt__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	border-radius: 13px;
	background: var(--accent-soft);
	color: var(--accent-strong);
	flex: none;
}

.pay-opt__icon svg { width: 22px; height: 22px; }

.pay-opt__name { font-weight: 700; font-size: 15.5px; letter-spacing: -0.01em; }
.pay-opt__text { font-size: 13.5px; color: var(--fg-muted); margin-top: 2px; }

.pay-opt__val {
	margin-left: auto;
	font-family: var(--mono);
	font-size: 15px;
	font-weight: 700;
	color: var(--accent-strong);
	white-space: nowrap;
}

/* ============================================================
   DOCS — документы
   ============================================================ */

.docs { display: flex; flex-direction: column; }

.docs__item {
	display: flex;
	align-items: center;
	gap: 18px;
	padding: 22px 8px;
	border-top: 1px solid var(--line);
	transition: all 0.25s var(--ease);
}

.docs__item:last-child { border-bottom: 1px solid var(--line); }

.docs__item:hover { background: var(--accent-soft); padding-left: 18px; }

.docs__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	border-radius: 13px;
	background: var(--accent-soft);
	color: var(--accent-strong);
	flex: none;
}

.docs__icon svg { width: 21px; height: 21px; }

.docs__name { font-weight: 600; font-size: 15.5px; }
.docs__meta {
	font-family: var(--mono);
	font-size: 12px;
	color: var(--fg-muted);
	margin-top: 3px;
}

.docs__arrow {
	margin-left: auto;
	color: var(--fg-muted);
	transition: all 0.25s var(--ease);
}

.docs__item:hover .docs__arrow { color: var(--accent-strong); transform: translate(3px, -3px); }
.docs__arrow svg { width: 20px; height: 20px; }

/* ============================================================
   FAQ — аккордеон на линиях
   ============================================================ */

.faq { max-width: 860px; }

.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }

.faq-item__btn {
	display: flex;
	align-items: center;
	gap: 20px;
	width: 100%;
	padding: 24px 0;
	text-align: left;
	transition: color 0.2s;
}

.faq-item__btn:hover { color: var(--accent-strong); }

.faq-item__num {
	font-family: var(--mono);
	font-size: 12px;
	font-weight: 500;
	color: var(--fg-muted);
	opacity: 0.7;
	flex: none;
}

.faq-item__q {
	flex: 1;
	font-size: clamp(16.5px, 2vw, 19px);
	font-weight: 600;
	letter-spacing: -0.015em;
}

.faq-item__icon {
	position: relative;
	width: 34px;
	height: 34px;
	border: 1px solid var(--line);
	border-radius: 50%;
	flex: none;
	transition: all 0.35s var(--ease);
}

.faq-item__icon::before,
.faq-item__icon::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	background: currentColor;
	transition: all 0.35s var(--ease);
}

.faq-item__icon::before { width: 12px; height: 1.6px; transform: translate(-50%, -50%); }
.faq-item__icon::after { width: 1.6px; height: 12px; transform: translate(-50%, -50%); }

.faq-item.is-open .faq-item__icon {
	background: var(--ink);
	border-color: var(--ink);
	color: var(--accent-on-dark);
	transform: rotate(135deg);
}

.faq-item__a {
	display: grid;
	grid-template-rows: 0fr;
	transition: grid-template-rows 0.5s var(--ease);
}

.faq-item.is-open .faq-item__a { grid-template-rows: 1fr; }

.faq-item__a-inner { overflow: hidden; }

.faq-item__a-inner p {
	margin: 0;
	padding: 0 0 26px calc(20px + 32px);
	max-width: 720px;
	font-size: 15px;
	line-height: 1.65;
	color: var(--fg-muted);
}

@media (max-width: 639px) {
	.faq-item__a-inner p { padding-left: 0; }
}

/* ============================================================
   FORMS
   ============================================================ */

.field { display: block; }

.field__label {
	display: block;
	font-size: 13.5px;
	font-weight: 600;
	margin-bottom: 8px;
}

.input {
	width: 100%;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--r-sm);
	padding: 14px 16px;
	font-size: 15px;
	color: var(--ink);
	transition: border-color 0.2s, box-shadow 0.2s;
}

.input::placeholder { color: rgba(35, 64, 47, 0.35); }

.input:focus {
	outline: none;
	border-color: var(--accent);
	box-shadow: 0 0 0 3px var(--accent-soft);
}

.input.is-invalid { border-color: #DC4C3E; }

select.input {
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%230B2723' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	padding-right: 42px;
}

.field__error {
	display: none;
	font-size: 12px;
	color: #DC4C3E;
	margin-top: 6px;
}

.field__error.is-visible { display: block; }

.consent {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	font-size: 13px;
	line-height: 1.5;
	color: var(--fg-muted);
	cursor: pointer;
	user-select: none;
}

.consent input {
	flex: none;
	width: 17px;
	height: 17px;
	margin-top: 2px;
	accent-color: var(--accent);
	cursor: pointer;
}

.consent a { color: var(--accent-strong); text-decoration: underline; text-underline-offset: 2px; }
.consent a:hover { color: var(--ink); }

.form-error-box {
	display: none;
	font-size: 13.5px;
	color: #DC4C3E;
	background: rgba(220, 76, 62, 0.07);
	border: 1px solid rgba(220, 76, 62, 0.2);
	border-radius: var(--r-sm);
	padding: 12px 16px;
}

.form-error-box.is-visible { display: block; }

.form-note { font-size: 12px; color: var(--fg-muted); }

/* Радио-карточки (interest) */
.radio-cards { display: flex; flex-direction: column; gap: 10px; }

.radio-card {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 13px 16px;
	border: 1px solid var(--line);
	border-radius: var(--r-sm);
	cursor: pointer;
	font-size: 14px;
	transition: all 0.2s var(--ease);
}

.radio-card:hover { border-color: var(--accent); }

.radio-card input { accent-color: var(--accent); width: 16px; height: 16px; flex: none; }

.radio-card:has(input:checked) {
	border-color: var(--accent);
	background: var(--accent-soft);
}

/* Карточка формы */
.form-card {
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: var(--r-lg);
	box-shadow: var(--shadow-card);
	padding: clamp(24px, 3vw, 36px);
}

.form-card__title {
	font-size: 21px;
	font-weight: 700;
	letter-spacing: -0.02em;
	margin: 0 0 8px;
}

.form-card__desc { font-size: 14.5px; color: var(--fg-muted); margin: 0 0 24px; }

.form-stack { display: flex; flex-direction: column; gap: 16px; }

/* Успех */
.form-success { text-align: center; padding: 32px 0; }

.form-success__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	margin: 0 auto 20px;
	border-radius: 50%;
	background: var(--accent-soft);
	color: var(--accent-strong);
}

.form-success__icon svg { width: 30px; height: 30px; }

.form-success__title { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; margin: 0 0 10px; }
.form-success__text { color: var(--fg-muted); margin: 0 0 26px; }

/* ============================================================
   MODALS
   ============================================================ */

.modal {
	position: fixed;
	inset: 0;
	z-index: 75;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 18px;
	visibility: hidden;
	pointer-events: none;
	transition: visibility 0s 0.45s;
}

.modal.is-open {
	visibility: visible;
	pointer-events: auto;
	transition-delay: 0s;
}

.modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(35, 64, 47, 0.55);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	opacity: 0;
	transition: opacity 0.4s;
}

.modal.is-open .modal__backdrop { opacity: 1; }

.modal__panel {
	position: relative;
	width: 100%;
	max-width: 520px;
	max-height: 90dvh;
	overflow-y: auto;
	background: var(--paper);
	border: 1px solid var(--line);
	border-radius: calc(var(--r-lg) + 4px);
	box-shadow: var(--shadow-lift);
	padding: clamp(26px, 4vw, 40px);
	opacity: 0;
	transform: translateY(28px) scale(0.97);
	transition: opacity 0.4s var(--ease), transform 0.45s var(--ease);
}

.modal.is-open .modal__panel { opacity: 1; transform: translateY(0) scale(1); }

.modal__close {
	position: absolute;
	top: 16px;
	right: 16px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	border: 1px solid var(--line);
	color: var(--fg-muted);
	transition: all 0.25s var(--ease);
	z-index: 2;
}

.modal__close:hover { background: var(--ink); border-color: var(--ink); color: var(--accent-on-dark); transform: rotate(90deg); }
.modal__close svg { width: 16px; height: 16px; }

.modal__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	border-radius: 14px;
	background: var(--accent-soft);
	color: var(--accent-strong);
	margin-bottom: 18px;
}

.modal__icon svg { width: 22px; height: 22px; }

.modal__title {
	font-size: clamp(22px, 3vw, 27px);
	font-weight: 700;
	letter-spacing: -0.025em;
	margin: 0 0 8px;
	padding-right: 36px;
}

.modal__desc { color: var(--fg-muted); font-size: 14.5px; margin: 0 0 24px; }

/* На мобильном — нижний лист: кнопка всегда в зоне досягаемости */
@media (max-width: 639px) {
	.modal {
		align-items: flex-end;
		padding: 0;
	}

	.modal__panel {
		max-width: none;
		width: 100%;
		max-height: 94dvh;
		border-radius: 24px 24px 0 0;
		padding: 22px 18px calc(20px + env(safe-area-inset-bottom));
		transform: translateY(100%);
	}

	.modal.is-open .modal__panel { transform: translateY(0); }

	/* Компактный ритм, чтобы кнопка помещалась без скролла */
	.modal__title { font-size: 22px; margin-bottom: 6px; padding-right: 30px; }
	.modal__desc { margin-bottom: 16px; font-size: 13.5px; }
	.modal .form-stack { gap: 12px; }
	.modal .field__label { margin-bottom: 5px; }
	.modal .input { padding: 12px 14px; }
	.modal .radio-cards { gap: 8px; }
	.modal .radio-card { padding: 10px 14px; }
	.modal .consent { font-size: 12px; }
}

/* ============================================================
   QUIZ — чат-подбор квартиры
   ============================================================ */

.quiz-fab {
	position: fixed;
	right: 22px;
	bottom: 22px;
	z-index: 58;
	display: inline-flex;
	align-items: center;
	gap: 12px;
	padding: 13px 22px 13px 15px;
	border-radius: 999px;
	background: var(--ink);
	color: #EAF4F0;
	font-weight: 600;
	font-size: 14px;
	box-shadow: var(--shadow-lift);
	transition: all 0.3s var(--ease);
}

.quiz-fab:hover { background: var(--accent); color: var(--accent-ink); transform: translateY(-3px); box-shadow: var(--shadow-glow); }

.quiz-fab__orb {
	position: relative;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: var(--sunset);
	flex: none;
}

.quiz-fab__orb::after {
	content: '';
	position: absolute;
	inset: -4px;
	border-radius: 50%;
	border: 1.5px solid rgba(255, 122, 89, 0.6);
	animation: ping 2s var(--ease) infinite;
}

.quiz-fab__orb svg {
	position: absolute;
	inset: 0;
	margin: auto;
	width: 15px;
	height: 15px;
	color: var(--ink);
}

@media (max-width: 767px) {
	.quiz-fab { right: 16px; bottom: 76px; padding: 11px 16px 11px 12px; font-size: 13px; }
}

.quiz {
	position: fixed;
	inset: 0;
	z-index: 90;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	visibility: hidden;
	pointer-events: none;
	transition: visibility 0s 0.5s;
}

@media (min-width: 640px) {
	.quiz { align-items: center; padding: 24px; }
}

.quiz.is-open {
	visibility: visible;
	pointer-events: auto;
	transition-delay: 0s;
}

.quiz__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(35, 64, 47, 0.6);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	opacity: 0;
	transition: opacity 0.4s;
}

.quiz.is-open .quiz__backdrop { opacity: 1; }

.quiz__card {
	position: relative;
	display: flex;
	flex-direction: column;
	width: 100%;
	max-width: 560px;
	height: min(720px, 100dvh);
	background: var(--paper);
	border-radius: 26px 26px 0 0;
	overflow: hidden;
	opacity: 0;
	transform: translateY(48px);
	transition: opacity 0.4s var(--ease), transform 0.5s var(--ease);
}

@media (min-width: 640px) {
	.quiz__card { border-radius: 26px; height: min(720px, 92dvh); border: 1px solid var(--line); box-shadow: var(--shadow-lift); }
}

.quiz.is-open .quiz__card { opacity: 1; transform: translateY(0); }

.quiz__head {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 18px 22px;
	background: var(--ink);
	color: #EAF4F0;
	flex: none;
}

.quiz__avatar {
	position: relative;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--sunset);
	display: flex;
	align-items: center;
	justify-content: center;
	flex: none;
}

.quiz__avatar svg { width: 19px; height: 19px; color: var(--ink); }

.quiz__avatar::after {
	content: '';
	position: absolute;
	right: -1px;
	bottom: -1px;
	width: 11px;
	height: 11px;
	border-radius: 50%;
	background: var(--accent);
	border: 2.5px solid var(--ink);
}

.quiz__head-name { font-weight: 700; font-size: 15.5px; letter-spacing: -0.01em; }

.quiz__head-status {
	font-family: var(--mono);
	font-size: 11px;
	color: rgba(243, 238, 227, 0.55);
	margin-top: 1px;
}

.quiz__head-close {
	margin-left: auto;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border: 1px solid rgba(243, 238, 227, 0.2);
	color: rgba(243, 238, 227, 0.7);
	transition: all 0.25s;
}

.quiz__head-close:hover { background: rgba(243, 238, 227, 0.12); color: #fff; }
.quiz__head-close svg { width: 15px; height: 15px; }

.quiz__progress {
	height: 2.5px;
	background: rgba(243, 238, 227, 0.12);
	flex: none;
}

.quiz__progress i {
	display: block;
	height: 100%;
	width: 0;
	background: var(--sunset);
	transition: width 0.6s var(--ease);
}

.quiz__log {
	flex: 1;
	overflow-y: auto;
	padding: 24px 20px;
	display: flex;
	flex-direction: column;
	gap: 14px;
	scroll-behavior: smooth;
}

.msg {
	max-width: 85%;
	padding: 13px 17px;
	border-radius: 18px;
	font-size: 14.5px;
	line-height: 1.55;
	animation: msg-in 0.4s var(--ease) both;
}

@keyframes msg-in {
	from { opacity: 0; transform: translateY(10px) scale(0.98); }
	to { opacity: 1; transform: translateY(0) scale(1); }
}

.msg--bot {
	align-self: flex-start;
	background: var(--surface);
	border: 1px solid var(--line);
	border-bottom-left-radius: 6px;
	box-shadow: var(--shadow-card);
}

.msg--user {
	align-self: flex-end;
	background: var(--ink);
	color: #EAF4F0;
	border-bottom-right-radius: 6px;
}

.msg--bot strong { color: var(--accent-strong); }

.msg--typing {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 16px 18px;
}

.msg--typing i {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--fg-muted);
	animation: typing 1.1s infinite;
}

.msg--typing i:nth-child(2) { animation-delay: 0.15s; }
.msg--typing i:nth-child(3) { animation-delay: 0.3s; }

@keyframes typing {
	0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
	30% { transform: translateY(-4px); opacity: 1; }
}

/* Мини-карточки результатов в чате */
.msg__results {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-top: 10px;
}

.quiz-result-item {
	display: flex;
	align-items: center;
	gap: 12px;
	border: 1px solid var(--line);
	border-radius: var(--r-sm);
	padding: 10px 14px;
	background: var(--paper);
}

.quiz-result-item__rooms { font-weight: 700; font-size: 13.5px; }
.quiz-result-item__meta {
	font-family: var(--mono);
	font-size: 11px;
	color: var(--fg-muted);
}

.quiz-result-item__price {
	margin-left: auto;
	font-family: var(--mono);
	font-size: 12.5px;
	font-weight: 700;
	color: var(--accent-strong);
	white-space: nowrap;
}

/* Варианты ответов */
.quiz__options {
	flex: none;
	display: flex;
	flex-wrap: wrap;
	gap: 9px;
	padding: 14px 20px 20px;
	border-top: 1px solid var(--line);
	background: var(--paper);
}

.quiz__options:empty { display: none; }

.quiz-opt {
	padding: 11px 18px;
	border-radius: 999px;
	border: 1px solid var(--line);
	background: var(--surface);
	font-size: 14px;
	font-weight: 500;
	transition: all 0.22s var(--ease);
	animation: msg-in 0.35s var(--ease) both;
}

.quiz-opt:hover {
	background: var(--ink);
	border-color: var(--ink);
	color: var(--accent-on-dark);
	transform: translateY(-2px);
}

/* Строка ввода (телефон/имя) */
.quiz__input-row {
	flex: none;
	display: none;
	gap: 10px;
	padding: 14px 20px 20px;
	border-top: 1px solid var(--line);
	background: var(--paper);
}

.quiz__input-row.is-visible { display: flex; }

.quiz__input-row .input { border-radius: 999px; padding: 13px 20px; }

.quiz__send {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: var(--accent);
	color: var(--accent-ink);
	flex: none;
	transition: all 0.25s var(--ease);
}

.quiz__send:hover { background: var(--ink); color: var(--accent-on-dark); transform: scale(1.06); }
.quiz__send svg { width: 19px; height: 19px; }

.quiz__consent {
	flex: none;
	padding: 0 20px 14px;
	font-size: 11px;
	line-height: 1.5;
	color: var(--fg-muted);
	display: none;
}

.quiz__consent.is-visible { display: block; }
.quiz__consent a { color: var(--accent-strong); text-decoration: underline; }

/* ============================================================
   STICKY CTA
   ============================================================ */

.sticky-cta {
	position: fixed;
	right: 22px;
	bottom: 92px;
	z-index: 57;
	width: min(400px, calc(100vw - 44px));
	opacity: 0;
	transform: translateY(24px);
	pointer-events: none;
	transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

.sticky-cta.is-visible {
	opacity: 1;
	transform: translateY(0);
	pointer-events: auto;
}

.sticky-cta.is-dismissed { display: none; }

.sticky-cta__card {
	position: relative;
	background: rgba(255, 255, 255, 0.9);
	backdrop-filter: blur(18px);
	-webkit-backdrop-filter: blur(18px);
	border: 1px solid var(--line);
	border-radius: var(--r-lg);
	box-shadow: var(--shadow-lift);
	padding: 20px;
	overflow: hidden;
}

.sticky-cta__card::before {
	content: '';
	position: absolute;
	inset: 0 0 auto 0;
	height: 2px;
	background: var(--sunset);
}

.sticky-cta__row {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 14px;
}

.sticky-cta__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	border-radius: 14px;
	background: var(--accent-soft);
	color: var(--accent-strong);
	flex: none;
}

.sticky-cta__icon svg { width: 22px; height: 22px; }

.sticky-cta__title { font-weight: 700; font-size: 15.5px; letter-spacing: -0.01em; }

.sticky-cta__meta {
	font-family: var(--mono);
	font-size: 11.5px;
	color: var(--fg-muted);
	margin-top: 2px;
}

.sticky-cta__dismiss {
	position: absolute;
	top: 10px;
	right: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	color: var(--fg-muted);
	transition: all 0.2s;
}

.sticky-cta__dismiss:hover { background: rgba(35, 64, 47, 0.06); color: var(--ink); }
.sticky-cta__dismiss svg { width: 13px; height: 13px; }

.sticky-cta .btn { width: 100%; }

@media (max-width: 767px) {
	.sticky-cta { display: none; }
}

/* Мобильная нижняя панель */
.mobile-bar {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 56;
	display: flex;
	gap: 10px;
	padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
	background: var(--ink);
	border-top: 1px solid rgba(243, 238, 227, 0.12);
	transform: translateY(110%);
	transition: transform 0.5s var(--ease);
}

.mobile-bar.is-visible { transform: translateY(0); }

.mobile-bar .btn { flex: 1; padding-block: 13px; font-size: 13.5px; }

.mobile-bar .btn--ghost { border-color: rgba(243, 238, 227, 0.3); color: #EAF4F0; flex: 0 0 auto; }

@media (min-width: 768px) {
	.mobile-bar { display: none; }
}

/* ============================================================
   COOKIE
   ============================================================ */

.cookie {
	position: fixed;
	left: 18px;
	bottom: 18px;
	z-index: 80;
	max-width: 420px;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--r-lg);
	box-shadow: var(--shadow-lift);
	padding: 20px 22px;
	display: none;
}

.cookie.is-visible { display: block; animation: msg-in 0.5s var(--ease); }

.cookie__text {
	font-size: 13px;
	line-height: 1.55;
	color: var(--fg-muted);
	margin: 0 0 14px;
}

.cookie__text a { color: var(--accent-strong); text-decoration: underline; text-underline-offset: 2px; }

.cookie__actions { display: flex; gap: 10px; justify-content: flex-end; }

.cookie__actions .btn { padding: 9px 18px; font-size: 13px; }

@media (max-width: 767px) {
	.cookie { left: 12px; right: 12px; bottom: 76px; max-width: none; }
}

/* ============================================================
   FOOTER
   ============================================================ */

.footer {
	background: var(--ink);
	color: #EAF4F0;
	padding-top: clamp(56px, 8vw, 96px);
	overflow: hidden;
}

.footer__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 40px;
	padding-bottom: 56px;
}

@media (min-width: 1024px) {
	.footer__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 4fr); gap: 56px; }
}

.footer__brand {
	font-family: var(--display);
	font-size: clamp(44px, 7vw, 88px);
	font-weight: 600;
	letter-spacing: -0.02em;
	line-height: 1;
}

.footer__brand::after { content: '.'; color: var(--accent-on-dark); }

.footer__tagline {
	margin-top: 16px;
	max-width: 320px;
	font-size: 14.5px;
	color: rgba(243, 238, 227, 0.55);
}

.footer__head {
	font-family: var(--mono);
	font-size: 11.5px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: rgba(243, 238, 227, 0.45);
	margin: 0 0 20px;
}

.footer__contacts { display: flex; flex-direction: column; gap: 14px; font-size: 14.5px; }

.footer__contacts a, .footer__contacts span {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	color: rgba(243, 238, 227, 0.75);
	transition: color 0.2s;
}

.footer__contacts a:hover { color: var(--accent-on-dark); }
.footer__contacts svg { width: 16px; height: 16px; color: var(--accent-on-dark); flex: none; margin-top: 3px; }
.footer__phone { font-family: var(--mono); font-size: 17px !important; font-weight: 600; }

.footer .form-card { background: rgba(243, 238, 227, 0.05); border-color: rgba(243, 238, 227, 0.12); box-shadow: none; }
.footer .form-card__title { color: #EAF4F0; }
.footer .form-card__desc { color: rgba(243, 238, 227, 0.55); }
.footer .field__label { color: rgba(243, 238, 227, 0.8); }
.footer .input {
	background: rgba(243, 238, 227, 0.06);
	border-color: rgba(243, 238, 227, 0.16);
	color: #EAF4F0;
}
.footer .input::placeholder { color: rgba(243, 238, 227, 0.3); }
.footer .input:focus { border-color: var(--accent-on-dark); }
.footer .consent { color: rgba(243, 238, 227, 0.55); }
.footer .consent a { color: var(--accent-on-dark); }

.footer__bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 14px 28px;
	padding: 26px 0 30px;
	border-top: 1px solid rgba(243, 238, 227, 0.1);
	font-size: 13px;
	color: rgba(243, 238, 227, 0.45);
}

.footer__links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 24px;
}

.footer__links a {
	font-family: var(--mono);
	font-size: 12px;
	transition: color 0.2s;
}

.footer__links a:hover { color: var(--accent-on-dark); }

/* ============================================================
   REVEAL-анимации
   ============================================================ */

[data-reveal] {
	opacity: 0;
	transform: translateY(28px);
	transition: opacity 0.8s var(--ease), transform 0.9s var(--ease);
	transition-delay: var(--reveal-delay, 0s);
	will-change: opacity, transform;
}

[data-reveal].is-revealed {
	opacity: 1;
	transform: translateY(0);
}

/* ============================================================
   Адаптив и доступность
   ============================================================ */

@media (max-width: 1023px) {
	.invest-panel { max-width: 560px; }
}

@media (max-width: 719px) {
	.hero__cta .btn { flex: 1 1 auto; justify-content: center; }
	.calc__stat-row { grid-template-columns: 1fr 1fr; }
	.section-head { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after {
		animation-duration: 0.001s !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001s !important;
	}
	[data-reveal] { opacity: 1; transform: none; }
	.marquee__track { animation: none; }
}

/* Тонкий скроллбар для чата */
.quiz__log::-webkit-scrollbar { width: 5px; }
.quiz__log::-webkit-scrollbar-thumb { background: var(--line); border-radius: 4px; }
.quiz__log::-webkit-scrollbar-track { background: transparent; }

/* Микроправки интеграции */
.about__text { margin-top: 24px; }
.hero__addr, .hero__addr address { font-style: normal; }

/* Резерв под мобильную нижнюю панель */
@media (max-width: 767px) {
	body { padding-bottom: 62px; }
	.footer__bottom { padding-bottom: 20px; }
}

/* ---------- Лайтбокс (просмотр изображений по клику) ---------- */
.layout-card__zoom {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	padding: 0;
	border: 0;
	background: none;
	cursor: zoom-in;
}
.layout-card__zoom-hint {
	position: absolute;
	top: 8px;
	right: 8px;
	width: 28px;
	height: 28px;
	border-radius: 999px;
	background: rgba(20, 20, 20, 0.75);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: opacity 0.2s;
}
.layout-card__zoom-hint svg { width: 14px; height: 14px; }
.layout-card__zoom:hover .layout-card__zoom-hint { opacity: 1; }

.tp-lightbox {
	position: fixed;
	inset: 0;
	z-index: 90;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	background: rgba(15, 15, 15, 0.92);
	backdrop-filter: blur(6px);
	animation: tp-lightbox-fade 0.25s ease;
}
@keyframes tp-lightbox-fade { from { opacity: 0; } to { opacity: 1; } }
.tp-lightbox img {
	max-width: min(1100px, 94vw);
	max-height: 88vh;
	width: auto;
	height: auto;
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
}
.tp-lightbox__close {
	position: absolute;
	top: 18px;
	right: 18px;
	width: 44px;
	height: 44px;
	border-radius: 999px;
	border: 0;
	background: rgba(255, 255, 255, 0.14);
	color: #fff;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
	transition: background-color 0.2s;
}
.tp-lightbox__close:hover { background: rgba(255, 255, 255, 0.3); }
