/* ============================================================
   Green Park — Кавказские Минеральные Воды
   Премиум коттеджный посёлок · Краснокумское, Ставропольский край
   Design system: warm ochre-green premium resort
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  /* Type scale (fluid) */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.85rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.3vw, 0.95rem);
  --text-base: clamp(1rem, 0.96rem + 0.22vw, 1.1rem);
  --text-lg: clamp(1.125rem, 1rem + 0.6vw, 1.4rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.3rem + 2.4vw, 3.4rem);
  --text-3xl: clamp(2.5rem, 1.2rem + 4vw, 4.75rem);
  --text-hero: clamp(2.9rem, 1rem + 6.4vw, 6.5rem);

  /* Spacing (4px base) */
  --space-1: 0.25rem;  --space-2: 0.5rem;  --space-3: 0.75rem;
  --space-4: 1rem;     --space-5: 1.25rem; --space-6: 1.5rem;
  --space-8: 2rem;     --space-10: 2.5rem; --space-12: 3rem;
  --space-16: 4rem;    --space-20: 5rem;   --space-24: 6rem;  --space-32: 8rem;

  /* ---- Palette: warm ochre-green premium ---- */
  --cream:        #F5EFE4;   /* main background */
  --cream-2:      #EFE7D7;   /* offset surface */
  --cream-3:      #E7DCC8;   /* deeper offset */
  --paper:        #FBF7EF;   /* card / lightest */
  --graphite:     #1E2A23;   /* primary text, greenish dark */
  --graphite-2:   #2C3B32;
  --muted:        #5E6B60;   /* muted text */
  --faint:        #94998C;   /* faint text */
  --line:         #D8CDB8;   /* dividers / borders */
  --line-soft:    #E3D9C7;

  --terra:        #B8693A;   /* terracotta-ochre — primary CTA accent */
  --terra-hover:  #A1582E;
  --terra-soft:   #E9D3BF;
  --green:        #3D5740;   /* deep green — status / premium */
  --green-hover:  #314733;
  --green-soft:   #D2DACC;
  --gold:         #C29A4A;   /* subtle gold for club / accents */

  --status-free:  #3D5740;   /* свободен */
  --status-hold:  #C29A4A;   /* бронь */
  --status-sold:  #9A8C78;   /* продан */

  /* Semantic */
  --color-bg: var(--cream);
  --color-text: var(--graphite);

  /* Radii */
  --radius-sm: 4px; --radius-md: 8px; --radius-lg: 14px; --radius-xl: 22px; --radius-full: 999px;

  /* Shadows — soft, warm-toned */
  --shadow-sm: 0 1px 3px rgba(30,42,35,.06);
  --shadow-md: 0 8px 28px rgba(30,42,35,.09);
  --shadow-lg: 0 22px 60px rgba(30,42,35,.14);

  --transition: 220ms cubic-bezier(.16,1,.3,1);

  /* Content widths */
  --content-narrow: 680px;
  --content: 1080px;
  --content-wide: 1320px;

  /* Fonts */
  --font-display: 'Fraunces', 'PT Serif', Georgia, serif;
  --font-body: 'General Sans', 'Manrope', 'Segoe UI', sans-serif;

  --header-h: 76px;
}

/* ---------- Reset / base ---------- */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility; scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}
body {
  min-height: 100dvh; line-height: 1.6;
  font-family: var(--font-body); font-size: var(--text-base);
  color: var(--color-text); background: var(--color-bg);
  overflow-x: hidden;
}
img,picture,video,svg { display: block; max-width: 100%; height: auto; }
ul[role='list'] { list-style: none; }
input,button,textarea,select { font: inherit; color: inherit; }
h1,h2,h3,h4 { font-family: var(--font-display); font-weight: 500; line-height: 1.08; text-wrap: balance; letter-spacing: -.01em; }
p { text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; background: none; border: none; }
table { border-collapse: collapse; width: 100%; }
::selection { background: var(--terra-soft); color: var(--graphite); }
:focus-visible { outline: 2px solid var(--terra); outline-offset: 3px; border-radius: var(--radius-sm); }
@media (prefers-reduced-motion: reduce){ *,*::before,*::after{ animation-duration:.01ms!important; transition-duration:.01ms!important; scroll-behavior:auto!important; } }
.sr-only{ position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }

a, button, [role="button"], input, select, textarea {
  transition: color var(--transition), background var(--transition), border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

/* ---------- Layout primitives ---------- */
.wrap { width: 100%; max-width: var(--content-wide); margin-inline: auto; padding-inline: clamp(var(--space-5), 5vw, var(--space-20)); }
.wrap--default { max-width: var(--content); }
.wrap--narrow { max-width: var(--content-narrow); }
.section { padding-block: clamp(var(--space-16), 9vw, var(--space-32)); }
.section--tight { padding-block: clamp(var(--space-12), 6vw, var(--space-20)); }
.section--cream2 { background: var(--cream-2); }
.section--green { background: var(--green); color: #EFE9DC; }
.section--dark { background: var(--graphite); color: #E9E3D6; }

/* ---------- Type helpers ---------- */
.eyebrow {
  font-family: var(--font-body); font-size: var(--text-xs); font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase; color: var(--terra);
  display: inline-flex; align-items: center; gap: var(--space-3);
}
.eyebrow::before { content:''; width: 26px; height:1px; background: var(--terra); display:inline-block; }
.section--green .eyebrow, .section--dark .eyebrow { color: var(--gold); }
.section--green .eyebrow::before, .section--dark .eyebrow::before { background: var(--gold); }
.display { font-size: var(--text-2xl); line-height: 1.05; }
.display--lg { font-size: var(--text-3xl); }
.lead { font-size: var(--text-lg); color: var(--muted); max-width: 60ch; }
.section--green .lead, .section--dark .lead { color: rgba(239,233,220,.82); }
.muted { color: var(--muted); }
.serif-em { font-family: var(--font-display); font-style: italic; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  font-size: var(--text-sm); font-weight: 600; letter-spacing: .01em;
  padding: var(--space-3) var(--space-6); border-radius: var(--radius-full);
  border: 1px solid transparent; line-height: 1.2; text-align: center; }
.btn--primary { background: var(--terra); color: #FBF7EF; }
.btn--primary:hover { background: var(--terra-hover); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--green { background: var(--green); color: #FBF7EF; }
.btn--green:hover { background: var(--green-hover); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--ghost { background: transparent; color: var(--graphite); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--graphite); background: rgba(30,42,35,.04); }
.btn--light { background: #FBF7EF; color: var(--graphite); }
.btn--light:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--lg { padding: var(--space-4) var(--space-8); font-size: var(--text-base); }
.btn--block { width: 100%; }
.btn svg { width: 18px; height: 18px; }

.textlink { color: var(--terra); font-weight: 600; font-size: var(--text-sm); display:inline-flex; align-items:center; gap: var(--space-2); }
.textlink:hover { gap: var(--space-3); }
.textlink svg { width: 16px; height: 16px; }
.section--green .textlink, .section--dark .textlink { color: var(--gold); }

/* ---------- Header ---------- */
.header { position: sticky; top: 0; z-index: 60;
  background: rgba(245,239,228,.82); backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent; transition: border-color var(--transition), box-shadow var(--transition); }
.header--scrolled { border-bottom-color: var(--line-soft); box-shadow: var(--shadow-sm); }
.header__inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: var(--space-6); }
.brand { display: flex; align-items: center; gap: var(--space-3); }
.brand__mark { width: 38px; height: 38px; color: var(--green); flex-shrink: 0; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-family: var(--font-display); font-size: 1.18rem; font-weight: 600; letter-spacing: .01em; color: var(--graphite); }
.brand__sub { font-size: .62rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }
.nav { display: flex; align-items: center; gap: clamp(var(--space-3), 1vw, var(--space-5)); }
.nav a { font-size: var(--text-sm); color: var(--graphite-2); font-weight: 500; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--terra); }
.header__actions { display: flex; align-items: center; gap: var(--space-4); }
.header__phone { font-size: var(--text-sm); font-weight: 600; color: var(--graphite); white-space: nowrap; }
.header__phone span { display:block; font-size: .62rem; font-weight: 500; color: var(--muted); letter-spacing: .04em; }
.burger { display: none; width: 42px; height: 42px; align-items: center; justify-content: center; color: var(--graphite); }
.burger svg { width: 24px; height: 24px; }

/* mobile nav drawer */
.mobile-nav { position: fixed; inset: 0; z-index: 80; background: var(--cream); transform: translateX(100%);
  transition: transform .35s cubic-bezier(.16,1,.3,1); display: flex; flex-direction: column; padding: var(--space-6); overflow-y: auto; }
.mobile-nav.open { transform: translateX(0); }
.mobile-nav__top { display:flex; align-items:center; justify-content: space-between; margin-bottom: var(--space-8); }
.mobile-nav__close { width:42px; height:42px; color: var(--graphite); }
.mobile-nav__close svg { width: 26px; height: 26px; }
.mobile-nav a { font-family: var(--font-display); font-size: 1.5rem; padding: var(--space-3) 0; border-bottom: 1px solid var(--line-soft); color: var(--graphite); }
.mobile-nav a:hover { color: var(--terra); }
.mobile-nav__cta { margin-top: var(--space-8); display: flex; flex-direction: column; gap: var(--space-3); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: clamp(560px, 92vh, 880px); display: flex; align-items: flex-end;
  color: #F5EFE4; overflow: hidden; }
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after { content:''; position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(20,28,22,.35) 0%, rgba(20,28,22,.05) 35%, rgba(20,28,22,.55) 100%); }
.hero__inner { padding-block: clamp(var(--space-12), 9vh, var(--space-24)); width: 100%; }
.hero h1 { font-size: var(--text-hero); font-weight: 400; max-width: 16ch; color: #FBF7EF; }
.hero h1 em { font-style: italic; color: var(--terra-soft); }
.hero__sub { font-size: var(--text-lg); max-width: 46ch; margin-top: var(--space-5); color: rgba(251,247,239,.9); }
.hero__cta { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-8); }
.hero__meta { display: flex; flex-wrap: wrap; gap: var(--space-8) var(--space-12); margin-top: var(--space-12);
  padding-top: var(--space-8); border-top: 1px solid rgba(251,247,239,.2); }
.hero__meta-item .n { font-family: var(--font-display); font-size: var(--text-xl); display: block; line-height: 1; color: #FBF7EF; }
.hero__meta-item .l { font-size: var(--text-xs); letter-spacing: .08em; text-transform: uppercase; color: rgba(251,247,239,.7); margin-top: var(--space-2); }

/* ---------- Segment cards (3 CTA) ---------- */
.segments { display: grid; grid-template-columns: repeat(3,1fr); gap: var(--space-5); }
.seg-card { background: var(--paper); border: 1px solid var(--line-soft); border-radius: var(--radius-lg);
  padding: var(--space-8); display: flex; flex-direction: column; gap: var(--space-3); }
.seg-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: var(--line); }
.seg-card__icon { width: 44px; height: 44px; color: var(--terra); margin-bottom: var(--space-2); }
.seg-card h3 { font-size: var(--text-lg); }
.seg-card p { color: var(--muted); font-size: var(--text-sm); flex: 1; }
.seg-card .textlink { margin-top: var(--space-2); }

/* ---------- Stats band ---------- */
.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: var(--space-8); }
.stat .n { font-family: var(--font-display); font-size: var(--text-2xl); line-height: 1; display:block; }
.section--green .stat .n, .section--dark .stat .n { color: var(--gold); }
.stat .l { font-size: var(--text-sm); margin-top: var(--space-3); color: var(--muted); }
.section--green .stat .l, .section--dark .stat .l { color: rgba(239,233,220,.75); }

/* ---------- Section heads ---------- */
.shead { max-width: 62ch; }
.shead .eyebrow { margin-bottom: var(--space-4); }
.shead h2 { font-size: var(--text-2xl); }
.shead p { margin-top: var(--space-4); color: var(--muted); font-size: var(--text-lg); }
.section--green .shead p, .section--dark .shead p { color: rgba(239,233,220,.82); }
.shead--between { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-6); flex-wrap: wrap; }

/* ---------- Feature split (asymmetric) ---------- */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(var(--space-8), 5vw, var(--space-20)); align-items: center; }
.split--rev .split__media { order: -1; }
.split__media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); width: 100%; object-fit: cover; }
.split__body h2 { font-size: var(--text-xl); }
.split__body p { margin-top: var(--space-4); color: var(--muted); }
.split__body .btn, .split__body .textlink { margin-top: var(--space-6); }

/* ---------- Formats (lots / club / build) ---------- */
.formats { display: grid; grid-template-columns: repeat(3,1fr); gap: var(--space-6); }
.fmt-card { border-radius: var(--radius-lg); overflow: hidden; background: var(--paper); border: 1px solid var(--line-soft);
  display: flex; flex-direction: column; }
.fmt-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.fmt-card__img { aspect-ratio: 4/3; overflow: hidden; }
.fmt-card__img img { width:100%; height:100%; object-fit: cover; transition: transform .6s cubic-bezier(.16,1,.3,1); }
.fmt-card:hover .fmt-card__img img { transform: scale(1.05); }
.fmt-card__body { padding: var(--space-6); display: flex; flex-direction: column; gap: var(--space-3); flex: 1; }
.fmt-card__tag { font-size: var(--text-xs); letter-spacing: .12em; text-transform: uppercase; color: var(--terra); font-weight: 600; }
.fmt-card h3 { font-size: var(--text-lg); }
.fmt-card p { color: var(--muted); font-size: var(--text-sm); flex: 1; }
.fmt-card__price { font-family: var(--font-display); font-size: var(--text-lg); color: var(--graphite); }
.fmt-card__price small { font-size: var(--text-sm); color: var(--muted); font-family: var(--font-body); }

/* ---------- Infra tiles ---------- */
.infra-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px,1fr)); gap: var(--space-3); }
.infra-tile { background: var(--paper); border: 1px solid var(--line-soft); border-radius: var(--radius-md);
  padding: var(--space-5); display: flex; flex-direction: column; gap: var(--space-3); }
.infra-tile svg { width: 28px; height: 28px; color: var(--green); }
.infra-tile .t { font-weight: 600; font-size: var(--text-sm); }
.infra-tile .s { font-size: var(--text-xs); color: var(--muted); }
.infra-tile .badge { align-self: flex-start; }

.badge { display:inline-flex; align-items:center; gap: var(--space-2); font-size: var(--text-xs); font-weight: 600;
  padding: 3px 10px; border-radius: var(--radius-full); letter-spacing: .02em; }
.badge--ready { background: var(--green-soft); color: var(--green); }
.badge--soon { background: #EFE0C6; color: #8A6A1E; }
.badge--plan { background: var(--cream-3); color: var(--muted); }
.badge--free { background: var(--green-soft); color: var(--green); }
.badge--hold { background: #EFE0C6; color: #8A6A1E; }
.badge--sold { background: #E4DCD0; color: var(--status-sold); }
.badge::before { content:''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

/* ---------- Location ---------- */
.loc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(var(--space-8),4vw,var(--space-16)); align-items: center; }
.loc-list { display: flex; flex-direction: column; gap: var(--space-2); margin-top: var(--space-6); }
.loc-item { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-4);
  padding: var(--space-4) 0; border-bottom: 1px solid var(--line-soft); }
.loc-item .place { font-weight: 500; }
.loc-item .dist { font-family: var(--font-display); font-size: var(--text-lg); color: var(--terra); white-space: nowrap; }
.map-embed { border: 0; width: 100%; aspect-ratio: 4/3; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); background: var(--cream-3); }

/* ---------- Process steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4,1fr); gap: var(--space-6); counter-reset: step; }
.step { position: relative; padding-top: var(--space-8); }
.step::before { counter-increment: step; content: '0' counter(step);
  font-family: var(--font-display); font-size: var(--text-xl); color: var(--terra); position: absolute; top: -6px; left: 0; }
.step__line { height: 2px; background: var(--line); margin-bottom: var(--space-5); position: relative; }
.step__line::after { content:''; position:absolute; left:0; top:0; width: 22px; height:2px; background: var(--terra); }
.step h3 { font-size: var(--text-lg); margin-bottom: var(--space-2); }
.step p { font-size: var(--text-sm); color: var(--muted); }

/* ---------- Trust / guarantees ---------- */
.trust-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: var(--space-6) var(--space-12); }
.trust-item { display: flex; gap: var(--space-4); }
.trust-item svg { width: 30px; height: 30px; color: var(--gold); flex-shrink: 0; margin-top: 2px; }
.trust-item h3 { font-size: var(--text-lg); margin-bottom: var(--space-2); }
.trust-item p { font-size: var(--text-sm); color: rgba(239,233,220,.78); }

/* ---------- Reviews / cases ---------- */
.review-card { background: var(--paper); border: 1px solid var(--line-soft); border-radius: var(--radius-lg); padding: var(--space-8); }
.review-card blockquote { font-family: var(--font-display); font-size: var(--text-lg); line-height: 1.4; color: var(--graphite-2); }
.review-card__person { display: flex; align-items: center; gap: var(--space-3); margin-top: var(--space-6); }
.review-card__ava { width: 46px; height: 46px; border-radius: 50%; background: var(--green-soft); color: var(--green);
  display:flex; align-items:center; justify-content:center; font-family: var(--font-display); font-weight: 600; flex-shrink: 0; }
.review-card__person .nm { font-weight: 600; font-size: var(--text-sm); }
.review-card__person .ct { font-size: var(--text-xs); color: var(--muted); }
.review-empty { border: 1.5px dashed var(--line); border-radius: var(--radius-lg); padding: var(--space-12); text-align: center; color: var(--muted); }
.review-empty h3 { color: var(--graphite); margin-bottom: var(--space-3); }

/* ---------- FAQ accordion ---------- */
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-5);
  text-align: left; padding: var(--space-6) 0; font-family: var(--font-display); font-size: var(--text-lg); color: var(--graphite); }
.faq-q:hover { color: var(--terra); }
.faq-q .ic { flex-shrink: 0; width: 24px; height: 24px; position: relative; margin-top: 5px; transition: transform var(--transition); }
.faq-q .ic::before, .faq-q .ic::after { content:''; position:absolute; background: var(--terra); border-radius: 2px; }
.faq-q .ic::before { width: 16px; height: 2px; top: 11px; left: 4px; }
.faq-q .ic::after { width: 2px; height: 16px; top: 4px; left: 11px; transition: transform var(--transition); }
.faq-item.open .faq-q .ic::after { transform: rotate(90deg); opacity: 0; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s cubic-bezier(.16,1,.3,1); }
.faq-a__inner { padding-bottom: var(--space-6); color: var(--muted); max-width: 70ch; }

/* ---------- Lead magnet block ---------- */
.lead-block { background: var(--graphite); color: #EFE9DC; border-radius: var(--radius-xl); overflow: hidden;
  display: grid; grid-template-columns: 1.1fr .9fr; }
.lead-block__body { padding: clamp(var(--space-8), 5vw, var(--space-16)); }
.lead-block__media { position: relative; min-height: 320px; }
.lead-block__media img { position:absolute; inset:0; width:100%; height:100%; object-fit: cover; }
.lead-block h2 { font-size: var(--text-xl); color: #FBF7EF; }
.lead-block p { color: rgba(239,233,220,.8); margin-top: var(--space-3); }
.lead-doc { display: inline-flex; align-items: center; gap: var(--space-3); margin: var(--space-6) 0;
  font-size: var(--text-sm); color: var(--gold); }
.lead-doc svg { width: 30px; height: 30px; }

/* ---------- Forms ---------- */
.form { display: flex; flex-direction: column; gap: var(--space-4); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.field { display: flex; flex-direction: column; gap: var(--space-2); }
.field label { font-size: var(--text-xs); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.input { padding: var(--space-4) var(--space-5); border-radius: var(--radius-md); border: 1px solid var(--line);
  background: var(--paper); color: var(--graphite); font-size: var(--text-base); }
.input::placeholder { color: var(--faint); }
.input:focus { outline: none; border-color: var(--terra); box-shadow: 0 0 0 3px var(--terra-soft); }
.lead-block .input { background: rgba(251,247,239,.06); border-color: rgba(251,247,239,.18); color: #FBF7EF; }
.lead-block .input::placeholder { color: rgba(239,233,220,.45); }
.lead-block .field label { color: rgba(239,233,220,.65); }
.form__consent { font-size: var(--text-xs); color: var(--faint); }
.lead-block .form__consent { color: rgba(239,233,220,.5); }
.form__consent a { text-decoration: underline; }
.form-success { display: none; padding: var(--space-6); border-radius: var(--radius-md); background: var(--green-soft); color: var(--green); font-weight: 500; }
.form-success.show { display: block; }
.form.hide { display: none; }

/* ---------- Footer ---------- */
.footer { background: var(--graphite); color: rgba(239,233,220,.7); padding-block: var(--space-20) var(--space-10); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--space-10); }
.footer__brand .brand__name, .footer__brand .brand__sub { color: #FBF7EF; }
.footer__brand p { margin-top: var(--space-5); font-size: var(--text-sm); max-width: 36ch; }
.footer h4 { font-family: var(--font-body); font-size: var(--text-xs); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: var(--space-5); }
.footer ul { display: flex; flex-direction: column; gap: var(--space-3); list-style: none; }
.footer a { font-size: var(--text-sm); }
.footer a:hover { color: #FBF7EF; }
.footer__socials { display: flex; gap: var(--space-3); margin-top: var(--space-5); }
.footer__socials a { width: 40px; height: 40px; border: 1px solid rgba(239,233,220,.2); border-radius: 50%;
  display:flex; align-items:center; justify-content:center; color: rgba(239,233,220,.8); }
.footer__socials a:hover { background: var(--gold); color: var(--graphite); border-color: var(--gold); }
.footer__socials svg { width: 18px; height: 18px; }
.footer__bottom { margin-top: var(--space-16); padding-top: var(--space-8); border-top: 1px solid rgba(239,233,220,.14);
  display: flex; justify-content: space-between; gap: var(--space-5); flex-wrap: wrap; font-size: var(--text-xs); color: rgba(239,233,220,.5); }

/* ---------- Sticky contact widget ---------- */
.sticky-contact { position: fixed; right: clamp(16px, 3vw, 32px); bottom: clamp(16px, 3vw, 32px); z-index: 70;
  display: flex; flex-direction: column; align-items: flex-end; gap: var(--space-3); }
.sticky-contact__menu { display: flex; flex-direction: column; gap: var(--space-2); opacity: 0; pointer-events: none;
  transform: translateY(10px); transition: opacity var(--transition), transform var(--transition); }
.sticky-contact.open .sticky-contact__menu { opacity: 1; pointer-events: auto; transform: translateY(0); }
.sticky-contact__item { display: flex; align-items: center; gap: var(--space-3); background: var(--paper); color: var(--graphite);
  padding: var(--space-3) var(--space-5); border-radius: var(--radius-full); box-shadow: var(--shadow-md); font-size: var(--text-sm); font-weight: 600; white-space: nowrap; }
.sticky-contact__item:hover { transform: translateX(-4px); }
.sticky-contact__item svg { width: 20px; height: 20px; }
.sticky-contact__item.wa svg { color: #25D366; }
.sticky-contact__item.tg svg { color: #2AABEE; }
.sticky-contact__item.call svg { color: var(--terra); }
.sticky-contact__toggle { width: 60px; height: 60px; border-radius: 50%; background: var(--terra); color: #FBF7EF;
  display:flex; align-items:center; justify-content:center; box-shadow: var(--shadow-lg); }
.sticky-contact__toggle:hover { background: var(--terra-hover); }
.sticky-contact__toggle svg { width: 26px; height: 26px; transition: transform var(--transition); }
.sticky-contact.open .sticky-contact__toggle svg { transform: rotate(135deg); }

/* ---------- Quiz modal ---------- */
.modal { position: fixed; inset: 0; z-index: 90; display: none; }
.modal.open { display: flex; align-items: center; justify-content: center; padding: var(--space-4); }
.modal__overlay { position: absolute; inset: 0; background: rgba(20,28,22,.55); backdrop-filter: blur(3px); }
.modal__panel { position: relative; background: var(--cream); border-radius: var(--radius-xl); width: 100%; max-width: 640px;
  max-height: 92vh; overflow-y: auto; box-shadow: var(--shadow-lg); }
.modal__close { position: absolute; top: var(--space-4); right: var(--space-4); width: 40px; height: 40px; color: var(--graphite); z-index: 2; }
.modal__close svg { width: 24px; height: 24px; }
.quiz { padding: clamp(var(--space-6), 4vw, var(--space-12)); }
.quiz__progress { height: 4px; background: var(--line-soft); border-radius: var(--radius-full); overflow: hidden; margin-bottom: var(--space-8); }
.quiz__progress-bar { height: 100%; background: var(--terra); width: 0; transition: width .4s cubic-bezier(.16,1,.3,1); }
.quiz__step { display: none; }
.quiz__step.active { display: block; animation: fade .35s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(8px);} to { opacity:1; transform: none; } }
.quiz__count { font-size: var(--text-xs); letter-spacing: .12em; text-transform: uppercase; color: var(--terra); font-weight: 600; }
.quiz__q { font-family: var(--font-display); font-size: var(--text-xl); margin: var(--space-3) 0 var(--space-6); }
.quiz__opts { display: grid; gap: var(--space-3); }
.quiz__opt { display: flex; align-items: center; gap: var(--space-4); padding: var(--space-4) var(--space-5);
  border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--paper); text-align: left; font-size: var(--text-base); }
.quiz__opt:hover { border-color: var(--terra); background: #fff; }
.quiz__opt.selected { border-color: var(--terra); background: var(--terra-soft); font-weight: 600; }
.quiz__opt .dot { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line); flex-shrink: 0; }
.quiz__opt.selected .dot { border-color: var(--terra); background: var(--terra); box-shadow: inset 0 0 0 3px var(--paper); }
.quiz__nav { display: flex; justify-content: space-between; margin-top: var(--space-8); gap: var(--space-3); }
.quiz__finish { text-align: center; padding: var(--space-6) 0; }
.quiz__finish svg { width: 64px; height: 64px; color: var(--green); margin: 0 auto var(--space-5); }

/* ---------- Page header (interior pages) ---------- */
.page-hero { position: relative; padding-top: calc(var(--header-h) + var(--space-12)); padding-bottom: var(--space-16);
  background: var(--cream-2); border-bottom: 1px solid var(--line-soft); }
.page-hero--img { color: #FBF7EF; border-bottom: 0; }
.page-hero--img .page-hero__media { position: absolute; inset: 0; z-index: 0; }
.page-hero--img .page-hero__media img { width:100%; height:100%; object-fit: cover; }
.page-hero--img .page-hero__media::after { content:''; position:absolute; inset:0; background: linear-gradient(180deg, rgba(20,28,22,.45), rgba(20,28,22,.65)); }
.page-hero__inner { position: relative; z-index: 1; }
.page-hero h1 { font-size: var(--text-3xl); font-weight: 400; max-width: 18ch; }
.page-hero--img h1 { color: #FBF7EF; }
.page-hero p { margin-top: var(--space-4); font-size: var(--text-lg); max-width: 56ch; color: var(--muted); }
.page-hero--img p { color: rgba(251,247,239,.85); }

/* breadcrumbs */
.crumbs { display: flex; gap: var(--space-2); flex-wrap: wrap; font-size: var(--text-xs); color: var(--muted); margin-bottom: var(--space-6); }
.page-hero--img .crumbs { color: rgba(251,247,239,.7); }
.crumbs a:hover { color: var(--terra); }
.crumbs .sep { opacity: .6; }

/* ---------- Lots catalog ---------- */
.lots-layout { display: grid; grid-template-columns: 280px 1fr; gap: var(--space-10); align-items: start; }
.filters { position: sticky; top: calc(var(--header-h) + var(--space-5)); background: var(--paper);
  border: 1px solid var(--line-soft); border-radius: var(--radius-lg); padding: var(--space-6); }
.filters__group + .filters__group { margin-top: var(--space-6); }
.filters h3 { font-family: var(--font-body); font-size: var(--text-sm); font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; color: var(--muted); margin-bottom: var(--space-4); }
.filter-group { margin-bottom: var(--space-6); }
.filter-group > .lbl { font-size: var(--text-sm); font-weight: 600; display: block; margin-bottom: var(--space-3); }
.chip-row { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.chip { font-size: var(--text-xs); padding: var(--space-2) var(--space-4); border-radius: var(--radius-full);
  border: 1px solid var(--line); background: var(--cream); color: var(--graphite-2); }
.chip:hover { border-color: var(--terra); }
.chip.active { background: var(--green); color: #FBF7EF; border-color: var(--green); }
.filters__reset { font-size: var(--text-sm); color: var(--terra); font-weight: 600; }
.lots-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px,1fr)); gap: var(--space-5); }
.lot-card { background: var(--paper); border: 1px solid var(--line-soft); border-radius: var(--radius-lg); overflow: hidden; display:flex; flex-direction:column; }
.lot-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.lot-card.is-hidden { display: none; }
.lot-card__top { padding: var(--space-5) var(--space-5) 0; display:flex; justify-content: space-between; align-items: flex-start; }
.lot-card__no { font-family: var(--font-display); font-size: var(--text-lg); }
.lot-card__body { padding: var(--space-4) var(--space-5) var(--space-6); display:flex; flex-direction:column; gap: var(--space-4); flex:1; }
.lot-card__rows { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); margin-top: var(--space-2); }
.lot-card__rows .k { font-size: var(--text-xs); color: var(--muted); }
.lot-card__rows .v { font-weight: 600; font-size: var(--text-sm); }
.lot-card__price { font-family: var(--font-display); font-size: var(--text-xl); color: var(--graphite); }
.lot-card__price small { font-family: var(--font-body); font-size: var(--text-xs); color: var(--muted); display:block; font-weight:400; }
.lots-count { font-size: var(--text-sm); color: var(--muted); margin-bottom: var(--space-5); }
.lots-empty { grid-column: 1/-1; text-align: center; padding: var(--space-16); color: var(--muted); border: 1.5px dashed var(--line); border-radius: var(--radius-lg); }

/* ---------- Master plan ---------- */
.plan-wrap { background: var(--paper); border: 1px solid var(--line-soft); border-radius: var(--radius-lg); padding: clamp(var(--space-4), 3vw, var(--space-8)); position: relative; }
.plan-svg { width: 100%; height: auto; }
.plan-quarter { cursor: pointer; transition: opacity var(--transition), filter var(--transition); }
.plan-quarter:hover { filter: brightness(1.08); }
.plan-tooltip { position: absolute; pointer-events: none; background: var(--graphite); color: #FBF7EF; padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md); font-size: var(--text-sm); box-shadow: var(--shadow-md); opacity: 0; transform: translateY(6px); transition: opacity .2s, transform .2s; z-index: 5; max-width: 220px; }
.plan-tooltip.show { opacity: 1; transform: translateY(0); }
.plan-tooltip strong { display:block; font-family: var(--font-display); font-size: var(--text-base); margin-bottom: 3px; }
.plan-legend { display: flex; flex-wrap: wrap; gap: var(--space-5); margin-top: var(--space-6); }
.plan-legend .li { display:flex; align-items:center; gap: var(--space-2); font-size: var(--text-sm); }
.plan-legend .sw { width: 16px; height: 16px; border-radius: var(--radius-sm); }

/* ---------- News / blog cards ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: var(--space-6); }
.post-card { background: var(--paper); border: 1px solid var(--line-soft); border-radius: var(--radius-lg); overflow: hidden; display:flex; flex-direction:column; }
.post-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.post-card__img { aspect-ratio: 16/10; overflow: hidden; }
.post-card__img img { width:100%; height:100%; object-fit: cover; transition: transform .6s; }
.post-card:hover .post-card__img img { transform: scale(1.05); }
.post-card__body { padding: var(--space-6); display:flex; flex-direction:column; gap: var(--space-3); flex:1; }
.post-card__meta { display:flex; gap: var(--space-3); font-size: var(--text-xs); color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.post-card__meta .cat { color: var(--terra); font-weight: 600; }
.post-card h3 { font-size: var(--text-lg); }
.post-card p { font-size: var(--text-sm); color: var(--muted); flex:1; }
.post-card--feature { grid-column: span 2; flex-direction: row; }
.post-card--feature .post-card__img { aspect-ratio: auto; flex: 1; }
.post-card--feature .post-card__body { flex: 1; justify-content: center; }

/* ---------- Invest ---------- */
.calc { background: var(--paper); border: 1px solid var(--line-soft); border-radius: var(--radius-xl); padding: clamp(var(--space-6), 4vw, var(--space-12)); }
.calc__controls { display: grid; gap: var(--space-6); }
.calc__field label { display:flex; justify-content: space-between; font-weight: 600; font-size: var(--text-sm); margin-bottom: var(--space-3); }
.calc__field label .val { color: var(--terra); font-family: var(--font-display); font-size: var(--text-lg); }
input[type=range] { width: 100%; accent-color: var(--terra); height: 6px; }
.calc__result { margin-top: var(--space-8); padding-top: var(--space-8); border-top: 1px solid var(--line); display:grid; grid-template-columns: repeat(3,1fr); gap: var(--space-6); }
.calc__metric .n { font-family: var(--font-display); font-size: var(--text-2xl); color: var(--green); display:block; line-height:1; }
.calc__metric .l { font-size: var(--text-sm); color: var(--muted); margin-top: var(--space-2); }
.calc__metric.hl .n { color: var(--terra); }

.bars { display:flex; align-items: flex-end; gap: var(--space-4); height: 240px; margin-top: var(--space-8); }
.bar { flex:1; height:100%; background: transparent; position: relative; display:flex; flex-direction: column; justify-content: flex-end; }
.bar .fill { background: var(--green); border-radius: var(--radius-sm) var(--radius-sm) 0 0; width:100%; position: relative; min-height: 4px; }
.bar:last-child .fill { background: var(--terra); }
.bar .yr { position: absolute; bottom: -28px; left:0; right:0; text-align:center; font-size: var(--text-xs); color: var(--muted); }
.bar .amt { position: absolute; top: -22px; left:0; right:0; text-align:center; font-size: var(--text-xs); font-weight:600; color: var(--graphite); }

/* ---------- Team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: var(--space-6); }
.team-card { text-align: left; }
.team-card__ava { aspect-ratio: 1; border-radius: var(--radius-lg); background: var(--green-soft); margin-bottom: var(--space-4);
  display:flex; align-items:center; justify-content:center; font-family: var(--font-display); font-size: var(--text-2xl); color: var(--green); }
.team-card h3 { font-size: var(--text-lg); }
.team-card .role { color: var(--terra); font-size: var(--text-sm); font-weight: 600; }
.team-card p { font-size: var(--text-sm); color: var(--muted); margin-top: var(--space-2); }

/* ---------- Prose ---------- */
.prose { max-width: 70ch; }
.prose > * + * { margin-top: var(--space-5); }
.prose h2 { font-size: var(--text-xl); margin-top: var(--space-10); }
.prose h3 { font-size: var(--text-lg); margin-top: var(--space-8); }
.prose ul { padding-left: var(--space-6); display:flex; flex-direction: column; gap: var(--space-2); }
.prose p, .prose li { color: var(--graphite-2); }
.prose strong { color: var(--graphite); }
.placeholder { color: var(--terra); font-weight: 600; background: var(--terra-soft); padding: 1px 7px; border-radius: var(--radius-sm); font-size: .9em; }

/* reveal animation */
/* Reveal is progressive enhancement: hidden only after JS marks the document ready.
   Without JS (or if observer misses), content stays fully visible. */
.js-reveal [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1); }
.js-reveal [data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js-reveal [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .nav { display: none; }
  .burger { display: flex; }
  .header__phone { display: none; }
  .lots-layout { grid-template-columns: 1fr; }
  .filters { position: static; }
  .lead-block { grid-template-columns: 1fr; }
  .lead-block__media { min-height: 220px; order: -1; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: var(--space-8); }
  .post-card--feature { grid-column: span 2; flex-direction: column; }
}
@media (max-width: 760px) {
  .segments, .formats, .stats, .steps, .post-grid, .team-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; gap: var(--space-8) var(--space-6); }
  .split, .loc-grid { grid-template-columns: 1fr; gap: var(--space-8); }
  .split--rev .split__media { order: 0; }
  .trust-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .calc__result { grid-template-columns: 1fr; gap: var(--space-5); }
  .post-card--feature { grid-column: span 1; }
  .post-grid { gap: var(--space-5); }
  .hero__meta { gap: var(--space-6) var(--space-8); }
}
@media (max-width: 480px) {
  .footer__grid { grid-template-columns: 1fr; }
  .hero__cta .btn { width: 100%; }
}
