/* Опора. Светлая тема, графит и лесной зелёный, плотные карточки и крупные цифры. */

:root {
  --s-25: 2px; --s-50: 4px; --s-75: 8px; --s-100: 12px; --s-200: 16px; --s-300: 24px;
  --s-400: 32px; --s-500: 40px; --s-600: 48px; --s-700: 64px; --s-800: 80px; --s-900: 96px;

  --r-lg: 8px; --r-xl: 12px; --r-2xl: 16px; --r-3xl: 24px;

  --bg: #EEF0EC;
  --surface: #FFFFFF;
  --alt: #E4E7E1;
  --ink: #181818;
  --muted: #5F6460;
  --line: #D4D8D1;
  --accent: #1F6B4F;
  --accent-hover: #185540;
  --accent-soft: #DCEBE3;
  --danger: #B3261E;
  --ok: #1F6B4F;

  --dark: #181818;
  --dark-2: #1F1F1F;
  --dark-3: #272727;
  --dark-4: #313131;
  --on-dark-muted: #B5B5B5;
  --accent-light: #7FC4A3;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: var(--s-800); background: var(--bg); }

body {
  margin: 0;
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 16px; line-height: 24px;
  color: var(--ink); background: var(--bg);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
body.lock { overflow: hidden; }

img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote, fieldset, legend { margin: 0; padding: 0; }
ul, ol { list-style: none; }
h1, h2, h3 { font-weight: 700; text-wrap: balance; }
p, li { text-wrap: pretty; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
i.ph, i.ph-fill { line-height: 1; flex: none; }
fieldset { border: 0; min-width: 0; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--s-300); }
.narrow { max-width: 800px; }
@media (min-width: 768px) { .wrap { padding-inline: var(--s-400); } }

.skip {
  position: absolute; left: var(--s-200); top: var(--s-200); z-index: 100;
  padding: var(--s-75) var(--s-100); border-radius: var(--r-lg);
  background: var(--ink); color: #fff; font-size: 14px; line-height: 20px; font-weight: 600; text-decoration: none;
  transform: translateY(-200%);
}
.skip:focus { transform: none; }

/* ---------- Кнопки и ссылки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-75);
  padding: var(--s-75) var(--s-100);
  border: 1px solid var(--accent); border-radius: var(--r-lg);
  background: var(--accent); color: #fff;
  font-size: 16px; line-height: 24px; font-weight: 600; text-decoration: none; cursor: pointer;
  transition: background-color 300ms var(--ease), border-color 300ms var(--ease), transform 500ms var(--ease);
}
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); transform: translateY(-1px); }
.btn:active { transform: scale(0.98); transition-duration: 200ms; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.btn-sm { font-size: 14px; line-height: 20px; }
.btn-block { width: 100%; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); border-color: var(--ink); color: #fff; }

.text-link { display: inline-flex; align-items: center; gap: var(--s-75); font-weight: 600; color: var(--accent); text-decoration: none; transition: color 300ms var(--ease); }
.text-link i { transition: transform 500ms var(--ease); }
.text-link:hover { color: var(--accent-hover); }
.text-link:hover i { transform: translate(2px, -2px); }

/* ---------- Навигация ---------- */
.brand { display: inline-flex; align-items: center; gap: var(--s-75); font-size: 20px; line-height: 28px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.brand i { font-size: 24px; color: var(--accent); }

.nav {
  position: fixed; top: var(--s-200); left: 50%; z-index: 50; transform: translateX(-50%);
  width: max-content; max-width: calc(100% - var(--s-400));
  display: flex; align-items: center; gap: var(--s-300);
  padding: var(--s-75) var(--s-75) var(--s-75) var(--s-200);
  background: rgba(255, 255, 255, 0.74);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border: 1px solid rgba(24, 24, 24, 0.08); border-radius: var(--r-2xl);
}
.nav-links { display: none; align-items: center; gap: var(--s-50); }
.nav-links a {
  padding: var(--s-75) var(--s-100); border-radius: var(--r-lg);
  font-size: 14px; line-height: 20px; font-weight: 600; text-decoration: none; color: var(--muted);
  transition: background-color 300ms var(--ease), color 300ms var(--ease);
}
.nav-links a:hover { color: var(--ink); background: rgba(24, 24, 24, 0.05); }
.nav-links a[aria-current="page"] { color: var(--accent); background: var(--accent-soft); }
.nav-phone { display: none; font-size: 14px; line-height: 20px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.nav-cta { display: none; white-space: nowrap; }

.burger {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--s-50);
  width: var(--s-500); height: var(--s-500); margin-left: auto;
  border: 0; border-radius: var(--r-lg); background: transparent; cursor: pointer;
}
.burger span { display: block; width: 20px; height: var(--s-25); background: var(--ink); transition: transform 500ms var(--ease); }
.burger[aria-expanded="true"] span:first-child { transform: translateY(3px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-3px) rotate(-45deg); }

@media (max-width: 1179px) { .nav { width: calc(100% - var(--s-400)); justify-content: space-between; } }
@media (min-width: 1180px) {
  .nav-links, .nav-phone { display: flex; }
  .nav-cta { display: inline-flex; }
  .burger { display: none; }
}

.menu {
  position: fixed; inset: 0; z-index: 40; overflow-y: auto;
  padding: var(--s-900) var(--s-300) var(--s-400);
  background: rgba(238, 240, 236, 0.97);
  -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 500ms var(--ease), visibility 0s linear 500ms;
}
.menu.open { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity 500ms var(--ease), visibility 0s; }
.menu-links { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-200); max-width: 480px; margin-inline: auto; }
.menu-links > * { opacity: 0; transform: translateY(var(--s-300)); transition: opacity 500ms var(--ease), transform 500ms var(--ease); transition-delay: 0ms; }
.menu.open .menu-links > * { opacity: 1; transform: none; transition-delay: var(--d, 0ms); }
.menu-links a:not(.btn) { font-size: 30px; line-height: 36px; font-weight: 700; text-decoration: none; }
.menu-links a[aria-current="page"] { color: var(--accent); }
.menu-links .menu-phone { margin-top: var(--s-200); font-size: 20px; line-height: 28px; font-weight: 600; color: var(--muted); }
.menu-links .btn { margin-top: var(--s-100); }
@media (min-width: 1180px) { .menu { display: none; } }

/* ---------- Заголовки ---------- */
.grad-title {
  display: block; max-width: 680px; padding-bottom: var(--s-25);
  font-size: 36px; line-height: 40px; font-weight: 700;
  color: #000000;
  background: linear-gradient(to right, #000000, #666666);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
@media (min-width: 640px) { .grad-title { font-size: 48px; line-height: 1; } }
@media (min-width: 1024px) { .grad-title { font-size: 60px; line-height: 1; } }

.eyebrow {
  display: inline-block; margin-bottom: var(--s-300);
  padding: var(--s-50) var(--s-100); border-radius: var(--r-lg);
  background: var(--accent-soft); color: var(--accent);
  font-size: 14px; line-height: 20px; font-weight: 700;
}
.hero-text { max-width: 680px; margin-top: var(--s-300); font-size: 18px; line-height: 28px; color: var(--muted); }

h2 { font-size: 30px; line-height: 36px; }
@media (min-width: 768px) { h2 { font-size: 36px; line-height: 40px; } }
.lead { margin-top: var(--s-200); font-size: 18px; line-height: 28px; color: var(--muted); }

/* ---------- Первый экран ---------- */
.hero { padding-top: var(--s-900); padding-bottom: var(--s-700); }
.hero-grid { display: grid; gap: var(--s-500); align-items: center; padding-top: var(--s-400); }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-200) var(--s-300); margin-top: var(--s-400); }
.note { max-width: 280px; font-size: 14px; line-height: 20px; color: var(--muted); }
.proof { display: flex; align-items: center; gap: var(--s-75); margin-top: var(--s-300); font-size: 14px; line-height: 20px; font-weight: 600; }
.proof i { font-size: 20px; color: var(--accent); }
@media (min-width: 1024px) { .hero-grid { grid-template-columns: 1.05fr 0.95fr; gap: var(--s-700); } }

.hero-media { position: relative; }
.hero-mosaic { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-200); }
.hero-mosaic li:nth-child(even) { margin-top: var(--s-500); }
.hero-mosaic img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-2xl); background: var(--alt); }
.price-badge {
  position: absolute; left: var(--s-200); bottom: var(--s-200);
  display: flex; flex-direction: column; padding: var(--s-200) var(--s-300);
  border-radius: var(--r-2xl); background: var(--dark); color: #fff;
}
.price-badge span { font-size: 14px; line-height: 20px; color: var(--on-dark-muted); }
.price-badge strong { font-size: 24px; line-height: 32px; font-weight: 700; }

.claims { display: grid; gap: var(--s-200); margin-top: var(--s-700); }
.claims li { padding: var(--s-300); border-radius: var(--r-2xl); background: var(--surface); }
.claims h3 { margin-top: var(--s-200); font-size: 18px; line-height: 28px; }
.claims p { margin-top: var(--s-50); font-size: 14px; line-height: 20px; color: var(--muted); }
.icon-box { display: inline-flex; align-items: center; justify-content: center; width: var(--s-600); height: var(--s-600); border-radius: var(--r-lg); background: var(--accent-soft); color: var(--accent); }
.icon-box i { font-size: 24px; }
@media (min-width: 640px) { .claims { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .claims { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Секции ---------- */
.section { padding-block: var(--s-700); }
.section.alt { background: var(--alt); }
.section-tight { padding-top: var(--s-300); }
@media (min-width: 768px) { .section { padding-block: var(--s-900); } .section-tight { padding-top: var(--s-400); } }

.section-head { max-width: 680px; margin-bottom: var(--s-500); }
.section-head.split { max-width: none; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--s-300); }
.section-head.split > div { max-width: 680px; }

/* Дома */
.cards4, .cards3 { display: grid; gap: var(--s-300) var(--s-200); }
@media (min-width: 640px) { .cards4, .cards3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cards4 { grid-template-columns: repeat(4, 1fr); } .cards3 { grid-template-columns: repeat(3, 1fr); } }
.house { display: flex; flex-direction: column; height: 100%; padding: var(--s-75); border-radius: var(--r-2xl); background: var(--surface); text-decoration: none; transition: transform 500ms var(--ease); }
.house:hover { transform: translateY(calc(var(--s-50) * -1)); }
.house-img { display: block; overflow: hidden; border-radius: var(--r-lg); aspect-ratio: 4 / 3; background: var(--alt); }
.house-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease); }
.house:hover .house-img img { transform: scale(1.04); }
.house-body { display: flex; flex-direction: column; gap: var(--s-50); padding: var(--s-200) var(--s-100) var(--s-100); }
.house-body strong { font-size: 18px; line-height: 28px; }
.house-body span { font-size: 14px; line-height: 20px; color: var(--muted); }
.house-body .house-sum { margin-top: var(--s-50); }
.house-body .house-price { margin-top: var(--s-75); font-size: 16px; line-height: 24px; font-weight: 700; color: var(--accent); }

/* Слоган */
.tagline { padding-block: var(--s-800); background: var(--dark); color: #fff; }
.tagline-text { max-width: 680px; font-size: 36px; line-height: 40px; font-weight: 600; text-wrap: balance; }
.js .tagline-text .w { opacity: 0.3; transition: opacity 500ms var(--ease); }
.js .tagline-text .w.on { opacity: 1; }
@media (min-width: 768px) { .tagline { padding-block: var(--s-900); } .tagline-text { font-size: 48px; line-height: 1; } }

/* Технологии */
.tech-grid { display: grid; gap: var(--s-200); }
@media (min-width: 640px) { .tech-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .tech-grid { grid-template-columns: repeat(3, 1fr); } }
.tech-card { position: relative; display: flex; flex-direction: column; height: 100%; padding: var(--s-300); border-radius: var(--r-2xl); background: var(--surface); text-decoration: none; transition: background-color 300ms var(--ease), transform 500ms var(--ease); }
.tech-card:hover { background: var(--accent-soft); transform: translateY(calc(var(--s-50) * -1)); }
.tech-card h3 { font-size: 20px; line-height: 28px; padding-right: var(--s-500); }
.tech-card p { margin-top: var(--s-75); flex: 1; color: var(--muted); }
.tech-meta { margin-top: var(--s-200); font-size: 14px; line-height: 20px; color: var(--muted); }
.tech-card strong { margin-top: var(--s-25); font-size: 18px; line-height: 28px; }
.tech-card > i { position: absolute; top: var(--s-300); right: var(--s-300); font-size: 24px; color: var(--accent); }

/* Комплектации */
.packages { display: grid; gap: var(--s-200); }
@media (min-width: 900px) { .packages { grid-template-columns: repeat(3, 1fr); } }
.package { display: flex; flex-direction: column; align-items: flex-start; padding: var(--s-400); border-radius: var(--r-2xl); background: var(--surface); }
.package.is-main { background: var(--dark); color: #fff; }
.package-tag { font-size: 14px; line-height: 20px; font-weight: 600; color: var(--accent); }
.package.is-main .package-tag { color: var(--accent-light); }
.package h3 { margin-top: var(--s-50); font-size: 30px; line-height: 36px; }
.checks { display: flex; flex-direction: column; gap: var(--s-100); margin-block: var(--s-300) var(--s-400); flex: 1; }
.checks li { display: flex; gap: var(--s-100); }
.checks i { margin-top: var(--s-25); color: var(--accent); }
.package.is-main .checks i { color: var(--accent-light); }
.package.is-main .btn { background: #fff; border-color: #fff; color: var(--ink); }
.package.is-main .btn:hover { background: var(--accent-soft); border-color: var(--accent-soft); }

/* Преимущества */
.benefit-grid { display: grid; gap: var(--s-200); }
@media (min-width: 768px) { .benefit-grid { grid-template-columns: repeat(2, 1fr); } }
.benefit { display: flex; gap: var(--s-200); padding: var(--s-300); border-radius: var(--r-2xl); background: var(--surface); }
.benefit h3 { font-size: 20px; line-height: 28px; }
.benefit p { margin-top: var(--s-75); color: var(--muted); }

/* О компании и цифры */
.brand-split { display: grid; gap: var(--s-500); align-items: center; }
.brand-img img { width: 100%; aspect-ratio: 6 / 5; object-fit: cover; border-radius: var(--r-3xl); background: var(--alt); }
@media (min-width: 900px) { .brand-split { grid-template-columns: 1.1fr 0.9fr; gap: var(--s-700); } }
.prose p + p { margin-top: var(--s-200); }
.lead-prose { max-width: 680px; font-size: 18px; line-height: 28px; color: var(--muted); }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-300); margin-top: var(--s-600); }
.stats li { padding: var(--s-300); border-radius: var(--r-2xl); background: var(--surface); display: flex; flex-direction: column; gap: var(--s-50); }
.stats strong { font-size: 36px; line-height: 40px; font-weight: 700; color: var(--accent); }
.stats span { font-size: 14px; line-height: 20px; color: var(--muted); }
@media (min-width: 768px) { .stats { grid-template-columns: repeat(4, 1fr); } .stats strong { font-size: 48px; line-height: 1; } }

/* Ипотека, тёмный блок */
.dark-band { padding-block: var(--s-700); background: var(--dark); color: #fff; }
@media (min-width: 768px) { .dark-band { padding-block: var(--s-900); } }
.mo-head { max-width: 680px; }
.mo-head .lead { color: var(--on-dark-muted); margin-bottom: var(--s-300); }
.badge-dark { display: inline-block; margin-bottom: var(--s-200); padding: var(--s-50) var(--s-100); border-radius: var(--r-lg); background: var(--dark-3); color: var(--accent-light); font-size: 14px; line-height: 20px; font-weight: 700; }
.mo-points { display: grid; gap: var(--s-200); margin-top: var(--s-600); }
.mo-points li { padding: var(--s-300); border: 1px solid var(--dark-4); border-radius: var(--r-2xl); background: var(--dark-2); }
.mo-points h3 { font-size: 18px; line-height: 28px; }
.mo-points p { margin-top: var(--s-75); font-size: 14px; line-height: 20px; color: var(--on-dark-muted); }
@media (min-width: 640px) { .mo-points { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .mo-points { grid-template-columns: repeat(4, 1fr); } }
.banks { display: flex; flex-wrap: wrap; gap: var(--s-75); margin-top: var(--s-500); }
.banks li { padding: var(--s-75) var(--s-200); border: 1px solid var(--dark-4); border-radius: var(--r-lg); font-size: 14px; line-height: 20px; font-weight: 600; color: var(--on-dark-muted); }
.banks.light { margin-top: var(--s-600); }
.banks.light li { border-color: var(--line); background: var(--surface); color: var(--ink); }

/* Объекты */
.filters { display: flex; flex-wrap: wrap; gap: var(--s-75); margin-bottom: var(--s-400); }
.chip { display: inline-flex; align-items: center; gap: var(--s-75); padding: var(--s-75) var(--s-200); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); font-size: 14px; line-height: 20px; font-weight: 600; cursor: pointer; transition: background-color 300ms var(--ease), border-color 300ms var(--ease), color 300ms var(--ease); }
.chip span { color: var(--muted); }
.chip:hover { border-color: var(--ink); }
.chip.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip.is-on span { color: #D6D6D6; }
.chip:active { transform: scale(0.98); }
.geo { display: flex; flex-direction: column; gap: var(--s-75); }
.geo li { display: grid; grid-template-columns: auto 1fr; gap: var(--s-100) var(--s-200); align-items: center; padding: var(--s-200) var(--s-300); border-radius: var(--r-2xl); background: var(--surface); }
.geo li div { display: flex; flex-direction: column; }
.geo li div span { font-size: 14px; line-height: 20px; color: var(--muted); }
.geo-dot { width: var(--s-100); height: var(--s-100); border-radius: 9999px; background: var(--accent-hover); opacity: 0.4; }
.geo-dot.done { opacity: 1; background: var(--accent); }
.geo-tech, .geo-status { grid-column: 2; font-size: 14px; line-height: 20px; color: var(--muted); }
.geo-status { font-weight: 700; color: var(--ink); }
@media (min-width: 768px) { .geo li { grid-template-columns: auto 2fr 1.2fr 0.8fr; } .geo-tech, .geo-status { grid-column: auto; } }

/* Вопросы */
.faq-wrap { max-width: 880px; }
.faq { display: flex; flex-direction: column; gap: var(--s-75); }
.faq-item { border-radius: var(--r-2xl); background: var(--surface); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: var(--s-200); padding: var(--s-200) var(--s-300); border-radius: var(--r-2xl); font-weight: 600; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary i { font-size: 20px; color: var(--accent); transition: transform 500ms var(--ease); }
.faq-item[open] summary i { transform: rotate(45deg); }
.faq-item p { padding: 0 var(--s-300) var(--s-300); max-width: 680px; color: var(--muted); }

/* Заявка */
.cta { padding-block: var(--s-700); background: var(--dark); color: #fff; }
.cta-grid { display: grid; gap: var(--s-500); align-items: start; }
.cta .lead { color: var(--on-dark-muted); max-width: 520px; }
.guarantees { display: flex; flex-direction: column; gap: var(--s-100); margin-top: var(--s-400); }
.guarantees li { display: flex; align-items: center; gap: var(--s-100); font-weight: 500; }
.guarantees i { font-size: 24px; color: var(--accent-light); }
.lead-form { padding: var(--s-300); border-radius: var(--r-2xl); background: var(--surface); color: var(--ink); }
.field { margin-bottom: var(--s-200); }
.field label, .field legend { display: block; margin-bottom: var(--s-75); font-size: 14px; line-height: 20px; font-weight: 700; }
.field input[type="text"], .field input[type="tel"], .field input[type="number"], .field select {
  width: 100%; padding: var(--s-100) var(--s-200);
  border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg);
  transition: border-color 300ms var(--ease);
}
.field input::placeholder { color: #8A8F8B; }
.field input:hover, .field select:hover { border-color: #AEB3AC; }
.field input[aria-invalid="true"] { border-color: var(--danger); }
.field-error { margin-top: var(--s-50); font-size: 14px; line-height: 20px; color: var(--danger); }
.field-error:empty { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: var(--s-200); font-size: 14px; line-height: 20px; }
.form-status:empty { display: none; }
.form-status.ok { color: var(--ok); }
.form-status.err { color: var(--danger); }
.consent { margin-top: var(--s-200); font-size: 12px; line-height: 16px; color: var(--muted); }
.consent a { color: var(--ink); }
@media (min-width: 900px) { .cta { padding-block: var(--s-900); } .cta-grid { grid-template-columns: 1.1fr 0.9fr; gap: var(--s-700); } .lead-form { padding: var(--s-400); } }

/* Модальное окно */
.modal { width: calc(100% - var(--s-400)); max-width: 460px; padding: 0; border: 0; border-radius: var(--r-3xl); background: var(--surface); color: var(--ink); }
.modal::backdrop { background: rgba(19, 18, 9, 0.6); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.modal[open] { animation: pop 500ms var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(var(--s-300)); } to { opacity: 1; transform: none; } }
.modal-box { position: relative; padding: var(--s-400) var(--s-300) var(--s-300); }
.modal h2 { padding-right: var(--s-600); }
.modal .lead { margin-bottom: var(--s-300); font-size: 16px; line-height: 24px; }
.modal .lead-form { padding: 0; background: transparent; }
.modal-close { position: absolute; top: var(--s-200); right: var(--s-200); display: inline-flex; align-items: center; justify-content: center; width: var(--s-500); height: var(--s-500); border: 0; border-radius: var(--r-lg); background: var(--bg); cursor: pointer; font-size: 20px; transition: background-color 300ms var(--ease); }
.modal-close:hover { background: var(--alt); }

/* ---------- Внутренние страницы ---------- */
.page-hero { padding-top: var(--s-900); padding-bottom: var(--s-500); }
.page-hero .wrap { padding-top: var(--s-400); }
.code404 { margin-bottom: var(--s-200); font-size: 96px; line-height: 1; font-weight: 700; color: var(--accent); }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-75); margin-bottom: var(--s-300); font-size: 14px; line-height: 20px; color: var(--muted); }
.crumbs a { color: var(--accent); text-decoration: none; font-weight: 600; }
.crumbs i { font-size: 12px; }

/* Проект */
.project-top { display: grid; gap: var(--s-400); align-items: start; }
.project-media { display: grid; gap: var(--s-200); }
.cover img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-2xl); background: var(--alt); }
.buy { padding: var(--s-400); border-radius: var(--r-2xl); background: var(--surface); }
.buy-price { font-size: 30px; line-height: 36px; font-weight: 700; color: var(--accent); }
.buy-note { margin-top: var(--s-50); font-size: 14px; line-height: 20px; color: var(--muted); }
.facts { display: grid; gap: var(--s-200); margin-block: var(--s-300); }
.facts div { display: flex; justify-content: space-between; gap: var(--s-200); padding-bottom: var(--s-200); }
.facts dt { color: var(--muted); }
.facts dd { font-weight: 700; text-align: right; }
@media (min-width: 960px) { .project-top { grid-template-columns: 1.4fr 0.6fr; gap: var(--s-500); } .buy { position: sticky; top: var(--s-800); } }
.project-text { display: grid; gap: var(--s-500); align-items: start; }
.project-text .prose { margin-top: var(--s-200); max-width: 680px; color: var(--muted); font-size: 18px; line-height: 28px; }
.plan { padding: var(--s-75); border-radius: var(--r-2xl); background: var(--surface); }
.plan img { width: 100%; border-radius: var(--r-lg); }
.plan figcaption { padding: var(--s-100) var(--s-100) var(--s-75); font-size: 14px; line-height: 20px; color: var(--muted); }
@media (min-width: 900px) { .project-text { grid-template-columns: 1fr 1fr; gap: var(--s-700); } }

/* Технологии */
.table-wrap { overflow-x: auto; border-radius: var(--r-2xl); background: var(--surface); }
.compare { width: 100%; min-width: 760px; border-collapse: collapse; }
.compare th, .compare td { padding: var(--s-200) var(--s-300); text-align: left; vertical-align: top; }
.compare thead th { font-size: 14px; line-height: 20px; color: var(--muted); }
.compare tbody th { font-size: 14px; line-height: 20px; color: var(--muted); font-weight: 600; }
.compare tbody td { font-weight: 600; }
.compare tbody tr:nth-child(odd) { background: var(--bg); }
.tech-list { display: flex; flex-direction: column; gap: var(--s-300); }
.tech-row { display: grid; gap: var(--s-300); padding: var(--s-400); border-radius: var(--r-2xl); background: var(--surface); }
.tech-row h2 { font-size: 30px; line-height: 36px; }
.tech-row .checks { margin-block: var(--s-200) var(--s-200); flex: none; }
.tech-price { margin-bottom: var(--s-200); font-weight: 700; color: var(--accent); }
@media (min-width: 900px) { .tech-row { grid-template-columns: 0.8fr 1.2fr; gap: var(--s-600); } }

/* Ипотека и калькуляторы */
.programs { display: grid; gap: var(--s-200); }
.programs li { padding: var(--s-300); border-radius: var(--r-2xl); background: var(--surface); }
.programs h3 { font-size: 20px; line-height: 28px; }
.programs p { margin-top: var(--s-75); color: var(--muted); }
@media (min-width: 768px) { .programs { grid-template-columns: repeat(2, 1fr); } }
.calc-grid { display: grid; gap: var(--s-400); align-items: start; }
@media (min-width: 900px) { .calc-grid { grid-template-columns: 1.1fr 0.9fr; gap: var(--s-600); } }
.calc { margin-top: var(--s-300); padding: var(--s-300); border-radius: var(--r-2xl); background: var(--surface); }
.section-tight .calc { margin-top: 0; }
.calc input[type="range"] { width: 100%; accent-color: var(--accent); }
.calc output { color: var(--accent); }
.radios { display: flex; flex-wrap: wrap; gap: var(--s-75); }
.radios legend { width: 100%; }
.radio { display: inline-flex; margin: 0; }
.radio input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.radio span { padding: var(--s-75) var(--s-200); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg); font-size: 14px; line-height: 20px; font-weight: 600; cursor: pointer; transition: background-color 300ms var(--ease), color 300ms var(--ease), border-color 300ms var(--ease); }
.radio input:checked + span { background: var(--accent); border-color: var(--accent); color: #fff; }
.radio input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.result { padding: var(--s-400); border-radius: var(--r-2xl); background: var(--dark); color: #fff; }
.result-label { font-size: 14px; line-height: 20px; color: var(--on-dark-muted); }
.result-value { margin-top: var(--s-50); font-size: 36px; line-height: 40px; font-weight: 700; }
.result-rows { display: grid; gap: var(--s-100); margin-block: var(--s-300); }
.result-rows div { display: flex; justify-content: space-between; gap: var(--s-200); padding-top: var(--s-100); }
.result-rows dt { color: var(--on-dark-muted); }
.result-rows dd { font-weight: 600; text-align: right; }
.result .btn { background: #fff; border-color: #fff; color: var(--ink); }
.result .btn:hover { background: var(--accent-soft); border-color: var(--accent-soft); }
.result-note { margin-top: var(--s-200); font-size: 12px; line-height: 16px; color: var(--on-dark-muted); }
@media (min-width: 768px) { .result-value { font-size: 48px; line-height: 1; } }

.steps { display: grid; gap: var(--s-400); }
.step-num { display: block; margin-bottom: var(--s-100); font-size: 48px; line-height: 1; font-weight: 700; color: var(--accent-soft); -webkit-text-stroke: 1px var(--accent); }
.step h3 { font-size: 24px; line-height: 32px; }
.step p { margin-top: var(--s-75); color: var(--muted); }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(3, 1fr); gap: var(--s-500); } }

/* Этапы */
.stages { display: flex; flex-direction: column; gap: var(--s-100); }
.stage { display: grid; gap: var(--s-100) var(--s-300); align-items: center; padding: var(--s-300); border-radius: var(--r-2xl); background: var(--surface); }
.stage .step-num { margin: 0; font-size: 36px; line-height: 40px; }
.stage h2 { font-size: 24px; line-height: 32px; }
.stage p { margin-top: var(--s-50); color: var(--muted); }
.stage-term { display: inline-flex; align-items: center; gap: var(--s-75); font-size: 14px; line-height: 20px; font-weight: 700; color: var(--accent); }
@media (min-width: 768px) { .stage { grid-template-columns: var(--s-800) 1fr auto; } }
.section.alt .prose { margin-top: var(--s-200); }

/* Контакты */
.contact-grid { display: grid; gap: var(--s-500); align-items: start; }
.contact-list { display: flex; flex-direction: column; gap: var(--s-300); }
.contact-list li { display: flex; gap: var(--s-200); align-items: flex-start; }
.contact-list i { display: inline-flex; align-items: center; justify-content: center; width: var(--s-600); height: var(--s-600); border-radius: var(--r-lg); background: var(--accent-soft); color: var(--accent); font-size: 24px; }
.contact-list div { display: flex; flex-direction: column; padding-top: var(--s-25); }
.contact-list span { font-size: 14px; line-height: 20px; color: var(--muted); }
.contact-list a, .contact-list p { font-size: 20px; line-height: 28px; font-weight: 600; text-decoration: none; }
.contact-list a:hover { color: var(--accent); }
.form-card { padding: var(--s-400); border-radius: var(--r-3xl); background: var(--surface); }
.form-card h2 { font-size: 30px; line-height: 36px; }
.form-card .lead { margin-top: var(--s-75); margin-bottom: var(--s-300); }
.form-card .lead-form { padding: 0; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 0.9fr 1.1fr; gap: var(--s-700); } }
.narrow .prose { color: var(--muted); }

/* ---------- Подвал ---------- */
.footer { padding-top: var(--s-700); background: #131209; color: #fff; }
.footer .brand i { color: var(--accent-light); }
.footer-grid { display: grid; gap: var(--s-400); }
.footer-brand p { margin-top: var(--s-75); font-size: 14px; line-height: 20px; color: var(--on-dark-muted); }
.footer-brand .brand { margin-bottom: var(--s-100); }
.footer-links, .footer-contacts { display: flex; flex-direction: column; gap: var(--s-100); font-size: 14px; line-height: 20px; }
.footer a { display: inline-flex; align-items: center; gap: var(--s-75); width: fit-content; text-decoration: none; transition: color 300ms var(--ease); }
.footer a:hover { color: var(--accent-light); }
.footer-contacts i { font-size: 20px; color: var(--accent-light); }
.footer-bottom { padding-block: var(--s-400); font-size: 12px; line-height: 16px; color: var(--on-dark-muted); }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; } }

/* ---------- Появление при прокрутке ---------- */
.js .reveal { opacity: 0; transform: translateY(var(--s-400)); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { transform: none; transition: opacity 300ms linear; }
  .menu-links > * { transform: none; }
  .btn:hover, .house:hover, .tech-card:hover, .text-link:hover i { transform: none; }
  .house:hover .house-img img { transform: none; }
  .burger span, .faq-item summary i { transition: none; }
  .modal[open] { animation: none; }
  .js .tagline-text .w { transition: opacity 300ms linear; }
}
