/* ============================================================
   Стройка.online — design system (light, green & white)
   ============================================================ */

:root {
  --brand: #128a4f;
  --brand-600: #0e7340;
  --brand-700: #0a5b33;
  --brand-50: #e8f6ee;
  --brand-100: #d2eedc;
  --brand-200: #a9dcbc;
  --brand-soft: rgba(18, 138, 79, 0.08);
  --brand-glow: rgba(18, 138, 79, 0.18);

  --bg: #ffffff;
  --bg-2: #f6faf7;
  --bg-3: #eef5f1;
  --surface: #ffffff;

  --border: rgba(18, 41, 28, 0.08);
  --border-strong: rgba(18, 41, 28, 0.16);

  --text: #0d1f15;
  --text-2: #3a4d42;
  --text-muted: #6a7a70;

  --success: #128a4f;
  --warning: #d68f00;
  --danger: #c0392b;

  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 999px;

  --shadow-1: 0 1px 2px rgba(13, 31, 21, 0.04), 0 4px 14px rgba(13, 31, 21, 0.06);
  --shadow-2: 0 10px 30px rgba(13, 31, 21, 0.08), 0 2px 6px rgba(13, 31, 21, 0.05);
  --shadow-3: 0 24px 60px rgba(13, 31, 21, 0.18);

  --container: 1240px;
  --space: clamp(16px, 2vw, 24px);
  --section-y: clamp(56px, 7vw, 96px);

  --ease: cubic-bezier(.2, .7, .2, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }

img, video, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-600); text-decoration: none; transition: color .15s var(--ease); }
a:hover { color: var(--brand-700); }
button { font: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.6em;
  color: var(--text);
  font-weight: 700;
}
h1 { font-size: clamp(32px, 5.2vw, 56px); font-weight: 800; }
h2 { font-size: clamp(26px, 3.6vw, 42px); }
h3 { font-size: clamp(19px, 2.2vw, 24px); font-weight: 700; }
p { margin: 0 0 1em; }

::selection { background: var(--brand-100); color: var(--text); }

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--space); }
.center { text-align: center; }
.muted { color: var(--text-muted); }
.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12px;
  font-weight: 700;
  color: var(--brand-600);
  margin-bottom: 14px;
  padding: 6px 12px;
  background: var(--brand-50);
  border-radius: var(--radius-pill);
}
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; top: -40px; left: 12px;
  background: var(--brand); color: #fff; padding: 10px 14px;
  border-radius: 10px; z-index: 999; font-weight: 600;
}
.skip-link:focus { top: 12px; color: #fff; }

[data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
[data-reveal].is-visible { opacity: 1; transform: none; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: var(--radius);
  font-weight: 700; font-size: 15px;
  border: 1.5px solid transparent;
  transition: transform .12s var(--ease), background .15s var(--ease), border-color .15s var(--ease), box-shadow .2s var(--ease), color .15s var(--ease);
  text-align: center; line-height: 1.2; min-height: 48px;
  white-space: nowrap;
}
.btn:focus-visible { outline: 3px solid var(--brand-glow); outline-offset: 2px; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--primary {
  background: linear-gradient(180deg, var(--brand) 0%, var(--brand-600) 100%);
  color: #fff;
  box-shadow: 0 8px 22px -6px var(--brand-glow);
}
.btn--primary:hover { background: var(--brand-700); color: #fff; box-shadow: 0 12px 28px -8px var(--brand-glow); }
.btn--ghost {
  background: #fff; color: var(--text);
  border-color: var(--border-strong);
}
.btn--ghost:hover { border-color: var(--brand); color: var(--brand-700); }
.btn--soft { background: var(--brand-50); color: var(--brand-700); }
.btn--soft:hover { background: var(--brand-100); color: var(--brand-700); }
.btn--lg { padding: 16px 28px; font-size: 16px; min-height: 56px; }
.btn--block { width: 100%; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.site-header.is-scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 4px 16px rgba(13, 31, 21, 0.04);
}
.header__inner { display: flex; align-items: center; gap: 20px; height: 76px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; color: var(--text); }
.logo:hover { color: var(--text); }
.logo__text { font-size: 18px; letter-spacing: -0.01em; }
.logo__accent { color: var(--brand-600); }
.nav { display: flex; gap: 6px; margin-left: 24px; flex: 1; }
.nav__link {
  color: var(--text-2); font-size: 15px; font-weight: 500;
  padding: 8px 14px; border-radius: var(--radius-pill);
  transition: color .15s, background .15s;
}
.nav__link:hover { color: var(--brand-700); background: var(--brand-50); }
.header__cta { display: flex; align-items: center; gap: 12px; }
.phone {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; color: var(--text);
  padding: 8px 12px; border-radius: var(--radius-pill);
  transition: color .15s, background .15s;
}
.phone:hover { color: var(--brand-700); background: var(--brand-50); }
.phone svg { color: var(--brand-600); }
.phone__text { white-space: nowrap; }
.burger {
  display: none; background: none; border: 0; padding: 10px;
  width: 44px; height: 44px; border-radius: 12px;
  align-items: center; justify-content: center; flex-direction: column;
}
.burger:hover { background: var(--brand-50); }
.burger span {
  display: block; width: 22px; height: 2px; background: var(--text);
  margin: 3px 0; border-radius: 2px; transition: transform .2s, opacity .2s;
}
.burger.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 1024px) {
  .nav { gap: 2px; }
  .nav__link { font-size: 14px; padding: 8px 10px; }
}
@media (max-width: 960px) {
  .header__inner { height: 64px; gap: 12px; }
  .nav {
    display: none; position: fixed; top: 64px; left: 0; right: 0; bottom: 0;
    background: #fff; flex-direction: column; padding: 24px var(--space);
    gap: 4px; border-top: 1px solid var(--border);
    overflow-y: auto;
  }
  .nav.is-open { display: flex; }
  .nav__link { font-size: 18px; padding: 14px 16px; font-weight: 600; }
  .burger { display: inline-flex; }
  .phone__text { display: none; }
  .header__cta .btn { padding: 10px 14px; min-height: 40px; font-size: 14px; }
  .logo__text { font-size: 16px; }
}
@media (max-width: 480px) {
  .header__cta .btn { display: none; }
  .header__cta { gap: 4px; }
}

/* Hero */
.hero {
  position: relative;
  padding: clamp(40px, 6vw, 80px) 0 clamp(48px, 7vw, 88px);
  background:
    radial-gradient(900px 480px at 100% -10%, var(--brand-glow), transparent 60%),
    radial-gradient(700px 380px at -10% 110%, rgba(18, 138, 79, 0.08), transparent 55%),
    linear-gradient(180deg, #fff 0%, var(--bg-2) 100%);
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(18, 41, 28, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 41, 28, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 30%, transparent 80%);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(24px, 4vw, 56px);
  align-items: center;
}
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: var(--radius-pill);
  background: #fff; color: var(--brand-700);
  font-size: 13px; font-weight: 600; margin-bottom: 22px;
  border: 1px solid var(--brand-100);
  box-shadow: var(--shadow-1);
}
.hero__eyebrow::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--brand); box-shadow: 0 0 0 4px var(--brand-glow);
}
.hero__title { margin-bottom: 18px; letter-spacing: -0.025em; }
.hero__title em { font-style: normal; color: var(--brand-700); }
.hero__lead { font-size: clamp(16px, 1.4vw, 19px); color: var(--text-2); max-width: 540px; }
.hero__actions { display: flex; gap: 12px; margin: 28px 0 0; flex-wrap: wrap; }
.hero__bullets { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; color: var(--text-2); }
.hero__bullets li { padding-left: 32px; position: relative; font-weight: 500; }
.hero__bullets li::before {
  content: ""; position: absolute; left: 0; top: 4px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--brand-50) url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23128a4f' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.hero__visual { position: relative; }
.hero__visual img {
  width: 100%; border-radius: var(--radius-xl);
  box-shadow: var(--shadow-3);
  aspect-ratio: 4 / 3; object-fit: cover; background: var(--bg-3);
}
.hero__price-badge {
  position: absolute; left: 18px; bottom: 18px;
  background: #fff; border-radius: var(--radius-lg);
  padding: 16px 22px; box-shadow: var(--shadow-2);
  border: 1px solid var(--border); display: grid; gap: 2px;
}
.hero__price-label { color: var(--text-muted); font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; font-weight: 600; }
.hero__price-value { font-size: 26px; font-weight: 800; color: var(--brand-700); line-height: 1; }
.hero__price-meta { color: var(--text-2); font-size: 13px; margin-top: 6px; }
.hero__floating-stat {
  position: absolute; right: -10px; top: 18px;
  background: #fff; border-radius: var(--radius-lg);
  padding: 12px 16px; box-shadow: var(--shadow-2);
  border: 1px solid var(--border);
  display: flex; align-items: center; gap: 10px;
}
.hero__floating-stat__icon {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--brand-50); color: var(--brand-700);
  display: inline-flex; align-items: center; justify-content: center;
}
.hero__floating-stat__num { font-size: 18px; font-weight: 800; line-height: 1; }
.hero__floating-stat__label { font-size: 12px; color: var(--text-muted); }

@media (max-width: 860px) {
  .hero__inner { grid-template-columns: 1fr; gap: 28px; }
  .hero__visual { order: -1; }
  .hero__floating-stat { display: none; }
  .hero__price-badge { left: 12px; bottom: 12px; padding: 12px 16px; }
  .hero__price-value { font-size: 22px; }
}

/* Trust strip */
.trust-strip { padding: 18px 0; background: #fff; border-bottom: 1px solid var(--border); }
.trust-strip__row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 14px 28px; color: var(--text-2); font-size: 14px;
}
.trust-strip__item { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; }
.trust-strip__item svg { color: var(--brand-600); flex: none; }

/* Stats */
.stats {
  padding: clamp(32px, 5vw, 56px) 0;
  background: var(--bg-2); border-bottom: 1px solid var(--border);
}
.stats__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(12px, 2vw, 24px);
}
.stat {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px;
  text-align: left; box-shadow: var(--shadow-1);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.stat:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.stat__value {
  font-size: clamp(28px, 4vw, 44px); font-weight: 800; line-height: 1;
  color: var(--brand-700); letter-spacing: -0.03em;
}
.stat__label { color: var(--text-2); font-size: 14px; margin-top: 8px; line-height: 1.4; }

@media (max-width: 720px) {
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stat { padding: 18px; }
}

/* Section base */
.section { padding: var(--section-y) 0; }
.section--alt { background: var(--bg-2); }
.section__head { max-width: 760px; margin: 0 auto clamp(28px, 4vw, 48px); text-align: center; }
.section__lead { color: var(--text-2); font-size: clamp(15px, 1.4vw, 18px); }
.section__footer { margin-top: 40px; text-align: center; }

/* House cards */
.house-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: clamp(16px, 2vw, 24px);
}
.house-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease);
  box-shadow: var(--shadow-1);
}
.house-card:hover {
  transform: translateY(-4px); border-color: var(--brand-200);
  box-shadow: var(--shadow-2);
}
.house-card__media {
  position: relative; display: block; aspect-ratio: 4 / 3;
  background: var(--bg-3); overflow: hidden;
}
.house-card__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s var(--ease);
}
.house-card:hover .house-card__media img { transform: scale(1.04); }
.house-card__badge {
  position: absolute; left: 12px; top: 12px;
  background: rgba(255, 255, 255, 0.94); color: var(--text);
  padding: 6px 12px; border-radius: var(--radius-pill);
  font-size: 12px; font-weight: 700; backdrop-filter: blur(6px);
  box-shadow: var(--shadow-1);
}
.house-card__badge--status { left: auto; right: 12px; background: var(--brand); color: #fff; }
.house-card__body { padding: 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.house-card__title { margin: 0; font-size: 19px; line-height: 1.3; }
.house-card__title a { color: var(--text); }
.house-card__title a:hover { color: var(--brand-700); }
.house-card__meta { color: var(--text-muted); font-size: 13px; margin: 0; }
.house-card__price { font-size: 24px; font-weight: 800; margin: 4px 0; color: var(--brand-700); letter-spacing: -0.02em; }
.house-card__desc { color: var(--text-2); font-size: 14px; margin: 0 0 12px; flex: 1; line-height: 1.5; }
.house-card__actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: auto; }
.house-card__actions .btn { flex: 1; min-width: 130px; }

/* About / benefits */
.about-block__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.benefits { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.benefit {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
  box-shadow: var(--shadow-1);
}
.benefit:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.benefit__icon {
  width: 48px; height: 48px; border-radius: var(--radius);
  background: var(--brand-50); color: var(--brand-700);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: 14px;
}
.benefit__title { margin: 0 0 8px; font-size: 17px; }
.benefit__text { color: var(--text-2); font-size: 14px; margin: 0; line-height: 1.55; }

@media (max-width: 860px) {
  .about-block__grid { grid-template-columns: 1fr; gap: 28px; }
  .benefits { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) { .benefits { grid-template-columns: 1fr; } }

/* Steps */
.steps {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px;
}
.step {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px;
  position: relative; box-shadow: var(--shadow-1);
  transition: transform .2s var(--ease);
}
.step:hover { transform: translateY(-3px); }
.step__num {
  font-weight: 800; font-size: 14px;
  color: var(--brand-700); display: inline-flex;
  align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--brand-50);
  margin-bottom: 14px; letter-spacing: -0.02em;
}
.step h3 { font-size: 17px; margin-bottom: 8px; }
.step p { color: var(--text-2); font-size: 14px; margin: 0; line-height: 1.55; }

/* Team */
.team__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px;
  max-width: 760px; margin: 0 auto;
}
.team-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px; text-align: center;
  box-shadow: var(--shadow-1);
}
.team-card__photo {
  width: 140px; height: 140px; border-radius: 50%; object-fit: cover;
  margin: 0 auto 18px; background: var(--bg-3);
  border: 4px solid var(--brand-50);
}
.team-card__name { margin: 0 0 6px; font-size: 18px; }
.team-card__role { color: var(--brand-700); font-weight: 700; margin: 0 0 8px; font-size: 14px; }
.team-card__exp { color: var(--text-2); font-size: 14px; margin: 0; }

/* Reviews */
.reviews__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px;
}
.review-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px;
  box-shadow: var(--shadow-1); position: relative;
}
.review-card::before {
  content: "\201C"; position: absolute; top: 8px; right: 22px;
  font-size: 80px; line-height: 1; font-family: Georgia, serif;
  color: var(--brand-100); font-weight: 800;
}
.review-card__rating { color: #f5a623; font-size: 16px; margin-bottom: 12px; letter-spacing: 2px; }
.review-card__text {
  font-style: normal; margin: 0 0 16px; color: var(--text);
  border: 0; padding: 0; line-height: 1.6; position: relative;
}
.review-card__author { color: var(--text-muted); font-size: 14px; }
.review-card__author strong { color: var(--text); display: block; font-size: 15px; }

/* FAQ */
.faq { display: grid; gap: 12px; max-width: 880px; margin: 0 auto; }
.faq__item {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 0;
  transition: border-color .15s var(--ease), box-shadow .2s var(--ease);
}
.faq__item:hover { border-color: var(--brand-200); }
.faq__item[open] { border-color: var(--brand-200); box-shadow: var(--shadow-1); }
.faq__q {
  cursor: pointer; padding: 20px 24px; font-weight: 600; font-size: 16px;
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  color: var(--text);
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after {
  content: ""; flex: none; width: 24px; height: 24px;
  background: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23128a4f' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform .2s var(--ease);
}
.faq__item[open] .faq__q::after { transform: rotate(180deg); }
.faq__a { padding: 0 24px 20px; color: var(--text-2); line-height: 1.6; }

/* Contact block */
.contact-block {
  background: linear-gradient(135deg, var(--brand-700) 0%, var(--brand) 100%);
  color: #fff; position: relative; overflow: hidden;
}
.contact-block::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    radial-gradient(600px 300px at 100% 0%, rgba(255, 255, 255, 0.08), transparent 60%),
    radial-gradient(500px 300px at 0% 100%, rgba(255, 255, 255, 0.06), transparent 50%);
  pointer-events: none;
}
.contact-block .container { position: relative; }
.contact-block__grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: center;
}
.contact-block h2 { color: #fff; }
.contact-block p { color: rgba(255, 255, 255, 0.9); }
.contact-block .eyebrow { background: rgba(255, 255, 255, 0.15); color: #fff; }
.contact-block__phone {
  display: inline-block; font-size: clamp(28px, 3.4vw, 40px); font-weight: 800;
  color: #fff; margin: 8px 0 16px; letter-spacing: -0.02em;
}
.contact-block__phone:hover { color: #fff; opacity: 0.9; }
.contact-block .lead-form { background: #fff; padding: 28px; border-radius: var(--radius-lg); color: var(--text); box-shadow: var(--shadow-2); }
.contact-block .lead-form .muted { color: var(--text-muted); }
.contact-block .lead-form a { color: var(--brand-700); }

@media (max-width: 860px) { .contact-block__grid { grid-template-columns: 1fr; } }

/* Forms */
.lead-form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 13px; color: var(--text-2); font-weight: 600; }
.field input, .field textarea {
  width: 100%; padding: 13px 16px; border-radius: var(--radius);
  border: 1.5px solid var(--border-strong); background: #fff; color: var(--text);
  font-family: inherit; font-size: 16px; line-height: 1.4;
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
  min-height: 48px;
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 4px var(--brand-glow);
}
.field.is-invalid input, .field.is-invalid textarea { border-color: var(--danger); }
.field__error { font-size: 13px; color: var(--danger); min-height: 0; }
.field.is-invalid .field__error { min-height: 1em; }
.lead-form__hint { font-size: 12px; margin: 0; }
.lead-form__status { font-size: 14px; min-height: 1em; padding: 0; }
.lead-form__status.is-ok {
  color: var(--brand-700); background: var(--brand-50);
  padding: 12px 14px; border-radius: var(--radius); font-weight: 600;
}
.lead-form__status.is-err {
  color: var(--danger); background: rgba(192, 57, 43, 0.08);
  padding: 12px 14px; border-radius: var(--radius); font-weight: 600;
}
.hp { position: absolute; left: -9999px; top: -9999px; height: 0; overflow: hidden; }

/* Modal */
.modal {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
  animation: modalIn .2s var(--ease);
}
.modal[hidden] { display: none; }
.modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(13, 31, 21, 0.6); backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.modal__panel {
  position: relative; max-width: 520px; width: 100%;
  background: #fff; border-radius: var(--radius-xl);
  padding: 36px 32px 32px;
  max-height: 92vh; overflow: auto; box-shadow: var(--shadow-3);
  animation: modalPanelIn .25s var(--ease);
}
@keyframes modalIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalPanelIn {
  from { opacity: 0; transform: translateY(16px) scale(0.97); }
  to { opacity: 1; transform: none; }
}
.modal__close {
  position: absolute; right: 14px; top: 14px;
  background: var(--bg-2); border: 0;
  width: 40px; height: 40px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--text-2); padding: 0;
  transition: background .15s, color .15s;
}
.modal__close:hover { background: var(--brand-50); color: var(--brand-700); }
.modal__title { margin-bottom: 6px; font-size: 24px; }
.modal__lead { color: var(--text-2); margin-bottom: 22px; font-size: 14px; }

@media (max-width: 520px) {
  .modal { padding: 0; align-items: flex-end; }
  .modal__panel { max-height: 96vh; border-radius: var(--radius-xl) var(--radius-xl) 0 0; padding: 28px 20px 24px; }
}

/* House page */
.page-hero {
  padding: clamp(28px, 4vw, 56px) 0 clamp(20px, 3vw, 32px);
  background: var(--bg-2); border-bottom: 1px solid var(--border);
}
.breadcrumbs {
  color: var(--text-muted); font-size: 14px; margin-bottom: 14px;
  display: flex; flex-wrap: wrap; gap: 6px;
}
.breadcrumbs a { color: var(--text-2); }
.breadcrumbs a:hover { color: var(--brand-700); }
.breadcrumbs span[aria-hidden="true"] { color: var(--text-muted); }
.page-hero__lead { color: var(--text-2); font-size: clamp(15px, 1.4vw, 18px); }

.house-page__grid { display: grid; grid-template-columns: 1.7fr 1fr; gap: 32px; }
.house-page__main {
  width: 100%; aspect-ratio: 3/2; object-fit: cover;
  border-radius: var(--radius-lg); box-shadow: var(--shadow-2);
}
.house-page__thumbs {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px; margin-top: 12px;
}
.house-page__thumbs img {
  aspect-ratio: 3/2; object-fit: cover; border-radius: 12px;
  cursor: pointer; transition: transform .15s var(--ease), box-shadow .15s var(--ease);
}
.house-page__thumbs img:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }

.house-page__sidebar {
  display: flex; flex-direction: column; gap: 12px;
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px;
  height: fit-content; position: sticky; top: 96px;
  box-shadow: var(--shadow-2);
}
.price-box__label { color: var(--text-muted); font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; font-weight: 700; }
.price-box__value { font-size: 34px; font-weight: 800; color: var(--brand-700); margin: 4px 0; line-height: 1; letter-spacing: -0.02em; }
.price-box__meta { color: var(--text-2); font-size: 14px; margin-bottom: 10px; }
.key-facts { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 10px; }
.key-facts li {
  display: flex; justify-content: space-between; gap: 10px;
  border-top: 1px dashed var(--border); padding-top: 10px;
}
.key-facts span { color: var(--text-muted); font-size: 14px; }
.key-facts strong { font-weight: 600; font-size: 14px; color: var(--text); text-align: right; }

.house-page__content { max-width: 760px; }
.check-list {
  list-style: none; padding: 0; margin: 0 0 1em;
  display: grid; gap: 10px;
}
.check-list li { padding-left: 32px; position: relative; color: var(--text-2); }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 2px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--brand-50) url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23128a4f' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 14px no-repeat;
}

@media (max-width: 860px) {
  .house-page__grid { grid-template-columns: 1fr; }
  .house-page__sidebar { position: static; }
}

/* Floating actions */
.floating-actions {
  position: fixed; right: 16px; bottom: 16px; z-index: 40;
  display: flex; flex-direction: column; gap: 10px;
}
.fab {
  width: 56px; height: 56px; border-radius: 50%; border: 0;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; box-shadow: var(--shadow-2);
  transition: transform .15s var(--ease), box-shadow .2s var(--ease);
}
.fab:hover { transform: translateY(-2px); box-shadow: var(--shadow-3); color: #fff; }
.fab--call { background: var(--brand); }
.fab--call:hover { background: var(--brand-700); }
.fab--wa { background: #25d366; }
.fab--lead { background: #fff; color: var(--brand-700); border: 1px solid var(--border); }
.fab--lead:hover { background: var(--brand-50); color: var(--brand-700); }

@media (max-width: 768px) {
  .floating-actions { right: 12px; bottom: 88px; }
  .fab { width: 52px; height: 52px; }
}

/* Mobile sticky CTA */
.mobile-cta {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
  background: #fff; padding: 10px 12px;
  border-top: 1px solid var(--border);
  box-shadow: 0 -8px 24px rgba(13, 31, 21, 0.08);
  gap: 8px;
}
.mobile-cta .btn { flex: 1; padding: 12px; min-height: 48px; font-size: 14px; }
@media (max-width: 768px) {
  .mobile-cta { display: flex; }
  body { padding-bottom: 76px; }
  .floating-actions { bottom: 88px; }
}

/* Footer */
.site-footer {
  margin-top: 0; padding: 64px 0 28px;
  background: #0d1f15; color: rgba(255, 255, 255, 0.78);
  border-top: 1px solid var(--border);
}
.site-footer .logo { color: #fff; }
.site-footer .logo:hover { color: #fff; }
.site-footer .logo__accent { color: var(--brand-200); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer__about { color: rgba(255, 255, 255, 0.7); font-size: 14px; max-width: 320px; margin-top: 14px; line-height: 1.6; }
.footer__heading {
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.12em;
  margin-bottom: 16px; color: rgba(255, 255, 255, 0.5); font-weight: 700;
}
.footer__list {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 10px; font-size: 14px;
}
.footer__list a { color: rgba(255, 255, 255, 0.78); }
.footer__list a:hover { color: var(--brand-200); }
.footer__bottom {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-top: 40px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.5); font-size: 13px;
}
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; gap: 24px; } }

/* Contacts page */
.contacts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contacts-list { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 12px; }
.contacts-list li { padding: 12px 16px; background: var(--bg-2); border-radius: var(--radius); }
.contacts-list span { color: var(--text-muted); margin-right: 6px; font-weight: 500; }
.map { width: 100%; border-radius: var(--radius-lg); border: 1px solid var(--border); box-shadow: var(--shadow-1); }
@media (max-width: 860px) { .contacts-grid { grid-template-columns: 1fr; } }

/* Content pages */
.content-page { max-width: 760px; }
.content-page h2 { margin-top: 1.6em; }
.content-page ul { padding-left: 1.4em; }
.content-page li { margin-bottom: 0.4em; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; }
}