/* La Torre Premium Village — design system */
:root {
  --green: #0f3c34;
  --green-2: #16514a;
  --green-3: #1f6a60;
  --terra: #b5674a;
  --terra-2: #cf8466;
  --sand: #f7f3ec;
  --sand-2: #efe8dc;
  --cream: #fbf9f5;
  --ink: #16211f;
  --ink-2: #3c4a47;
  --muted: #6d7a77;
  --line: rgba(15, 60, 52, 0.12);
  --white: #fff;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 20px 60px -30px rgba(15, 60, 52, 0.35);
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Manrope', system-ui, -apple-system, sans-serif;
  --container: 1280px;
  --header-h: 76px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
*,
*::before,
*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html.lenis { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img, video, picture { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; line-height: 1.1; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
address { font-style: normal; }
.container { width: min(var(--container), 100% - 40px); margin-inline: auto; }
.container.narrow { max-width: 860px; }
.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--green); color: #fff; padding: 8px 12px; z-index: 1000; }
.skip-link:focus { left: 8px; }

/* Typography */
.h1 { font-family: var(--font-display); font-size: clamp(2.4rem, 5.2vw, 4.6rem); line-height: 1.02; font-weight: 500; }
.h2 { font-family: var(--font-display); font-size: clamp(1.9rem, 3.6vw, 3.1rem); line-height: 1.08; }
.h3 { font-family: var(--font-display); font-size: clamp(1.35rem, 2vw, 1.75rem); }
.eyebrow { font-size: 0.74rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--terra); font-weight: 600; margin-bottom: 14px; }
.eyebrow-light { color: var(--terra-2); }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--ink-2); max-width: 62ch; }
.lead-light { color: rgba(255, 255, 255, 0.86); }
.muted { color: var(--muted); }
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-tight { padding: clamp(40px, 6vw, 72px) 0; }
.section-head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head.is-center { margin-inline: auto; text-align: center; }
.section-head.is-center .lead { margin-inline: auto; }
.bg-sand { background: var(--sand); }
.bg-green { background: var(--green); color: #fff; }
.bg-green .lead, .bg-green .muted { color: rgba(255, 255, 255, 0.78); }
.bg-green .eyebrow { color: var(--terra-2); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 0.95rem; line-height: 1; transition: transform 0.25s var(--ease), background 0.25s, color 0.25s, border-color 0.25s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--terra); color: #fff; }
.btn-primary:hover { background: var(--terra-2); }
.btn-dark { background: var(--green); color: #fff; }
.btn-dark:hover { background: var(--green-2); }
.btn-light { background: rgba(255, 255, 255, 0.92); color: var(--green); }
.btn-light:hover { background: #fff; }
.btn-ghost { background: transparent; border-color: currentColor; color: inherit; }
.btn-outline { background: transparent; border-color: var(--green); color: var(--green); }
.btn-outline:hover { background: var(--green); color: #fff; }
.btn-sm { padding: 10px 18px; font-size: 0.85rem; }
.btn-lg { padding: 18px 32px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn .icon { width: 18px; height: 18px; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--green); border-bottom: 1px solid transparent; transition: gap 0.25s; }
.link-arrow:hover { gap: 14px; }
.link-arrow .icon { width: 18px; height: 18px; }
.icon { display: inline-flex; width: 24px; height: 24px; flex: none; }
.icon svg { width: 100%; height: 100%; }

/* Header */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  transition: background 0.35s, box-shadow 0.35s, backdrop-filter 0.35s;
  color: #fff;
}
.site-header.is-solid, .site-header.is-light { background: rgba(251, 249, 245, 0.88); backdrop-filter: blur(14px); color: var(--green); box-shadow: 0 1px 0 var(--line); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand img { height: 44px; width: auto; filter: brightness(0) invert(1); transition: filter 0.3s; }
.site-header.is-solid .brand img, .site-header.is-light .brand img { filter: none; }
.main-nav { display: flex; gap: 22px; margin-left: auto; font-size: 0.86rem; font-weight: 500; letter-spacing: 0.01em; }
.main-nav a { opacity: 0.85; padding: 6px 0; border-bottom: 1px solid transparent; transition: opacity 0.2s, border-color 0.2s; }
.main-nav a:hover, .main-nav a.is-active { opacity: 1; border-color: var(--terra); }
.header-actions { display: flex; align-items: center; gap: 16px; }
.header-phone { font-weight: 600; font-size: 0.92rem; }
.burger { display: none; width: 44px; height: 44px; background: transparent; border: 0; flex-direction: column; gap: 5px; align-items: center; justify-content: center; }
.burger span { width: 24px; height: 2px; background: currentColor; transition: transform 0.3s, opacity 0.3s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu { position: fixed; inset: var(--header-h) 0 0 0; background: var(--cream); color: var(--green); padding: 24px 20px 120px; display: flex; flex-direction: column; gap: 4px; overflow: auto; z-index: 99; }
.mobile-menu[hidden] { display: none; }
.mobile-menu a:not(.btn) { font-family: var(--font-display); font-size: 1.6rem; padding: 10px 0; border-bottom: 1px solid var(--line); }
.mobile-menu-cta { margin-top: 24px; display: grid; gap: 16px; }
.messenger-row { display: flex; gap: 12px; }
.messenger-row a { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(15, 60, 52, 0.08); color: var(--green); transition: background 0.2s, color 0.2s; }
.messenger-row a:hover { background: var(--terra); color: #fff; }
.messenger-row .icon { width: 22px; height: 22px; }

/* Page hero */
.page-hero { position: relative; min-height: 72vh; display: flex; align-items: flex-end; color: #fff; padding: calc(var(--header-h) + 40px) 0 64px; overflow: hidden; }
.page-hero.is-compact { min-height: 52vh; }
.page-hero-bg, .page-hero-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 30, 26, 0.45) 0%, rgba(10, 30, 26, 0.15) 40%, rgba(10, 30, 26, 0.82) 100%); }
.page-hero-content { position: relative; max-width: 900px; }
.page-hero .lead { margin-top: 18px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 28px 44px; margin: 40px 0 0; padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, 0.25); }
.hero-stats dt { font-family: var(--font-display); font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1; }
.hero-stats dd { margin: 6px 0 0; font-size: 0.82rem; color: rgba(255, 255, 255, 0.72); }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 0.8rem; color: var(--muted); margin-bottom: 18px; }
.breadcrumbs a::after { content: '›'; margin-left: 8px; opacity: 0.6; }
.breadcrumbs.is-light { color: rgba(255, 255, 255, 0.7); }

/* Cinematic hero (home) */
.hero-cinema { position: relative; height: 100vh; height: 100svh; min-height: 620px; max-height: 1080px; overflow: hidden; background: #0a1e1a; color: #fff; }
.hero-slides { position: absolute; inset: 0; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s var(--ease); will-change: opacity; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 40%); display: block; transform: scale(1.06); transform-origin: var(--pos, 50% 40%); }
.hero-slide[data-slide="1"] { --pos: 55% 35%; }
.hero-slide[data-slide="2"] { --pos: 50% 45%; }
.hero-slide[data-slide="3"] { --pos: 50% 40%; }
.hero-slide[data-slide="4"] { --pos: 50% 62%; }
.hero-slide.is-active { opacity: 1; z-index: 1; }
.hero-slide.is-active img { animation: kenburns 9s var(--ease) forwards; }
@keyframes kenburns { from { transform: scale(1.06) translate3d(0, 0, 0); } to { transform: scale(1.0) translate3d(0, -1%, 0); } }
.hero-shade { position: absolute; inset: 0; z-index: 2; background: linear-gradient(180deg, rgba(10,30,26,0.55) 0%, rgba(10,30,26,0.05) 30%, rgba(10,30,26,0.15) 55%, rgba(10,30,26,0.82) 100%), linear-gradient(90deg, rgba(10,30,26,0.45) 0%, rgba(10,30,26,0) 60%); pointer-events: none; }
.hero-content { position: absolute; inset: 0; z-index: 3; display: flex; align-items: flex-end; padding-bottom: clamp(96px, 16vh, 150px); }
.hero-content .h1 { max-width: 15ch; text-wrap: balance; margin: 0; }
.hero-content [data-cinema-eyebrow] { transition: opacity 0.5s; }
.hero-lead { margin-top: 18px; max-width: 56ch; transition: opacity 0.5s; }
.hero-lead.is-fading, [data-cinema-eyebrow].is-fading { opacity: 0; }
.hero-chips { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 0.88rem; color: rgba(255,255,255,0.82); }
.hero-chips li { display: inline-flex; align-items: center; gap: 8px; }
.hero-chips .icon { width: 18px; height: 18px; color: var(--terra-2); }
.hero-nav { position: absolute; left: 0; right: 0; bottom: 28px; z-index: 4; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.hero-nav-item { background: none; border: 0; padding: 10px 0 0; cursor: pointer; text-align: left; color: rgba(255,255,255,0.6); font: 500 0.78rem/1.3 var(--font-body); letter-spacing: 0.04em; transition: color 0.3s; }
.hero-nav-item:hover, .hero-nav-item.is-active { color: #fff; }
.hero-nav-bar { display: block; height: 2px; background: rgba(255,255,255,0.25); border-radius: 2px; overflow: hidden; margin-bottom: 10px; }
.hero-nav-bar i { display: block; height: 100%; width: 100%; background: var(--terra-2); transform: scaleX(0); transform-origin: left; }
.hero-nav-item.is-active .hero-nav-bar i { animation: hero-progress var(--hero-interval, 6.5s) linear forwards; }
.hero-cinema.is-paused .hero-nav-item.is-active .hero-nav-bar i { animation-play-state: paused; }
@keyframes hero-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) { .hero-slide.is-active img { animation: none; transform: none; } }
.scroll-hint { position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); color: rgba(255, 255, 255, 0.7); font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.scroll-hint i { width: 1px; height: 36px; background: linear-gradient(180deg, rgba(255,255,255,0.8), transparent); animation: hint 1.8s infinite; }
@keyframes hint { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* Price band */
.price-band { background: var(--green); color: #fff; padding: 28px 0; position: relative; z-index: 2; }
.price-inner { display: grid; grid-template-columns: repeat(4, 1fr) auto; gap: 24px; align-items: center; }
.price-item { display: grid; gap: 4px; }
.price-value { font-family: var(--font-display); font-size: clamp(1.5rem, 2.4vw, 2.1rem); line-height: 1; }
.price-label { font-size: 0.78rem; color: rgba(255, 255, 255, 0.7); }

/* Cards & grids */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: #fff; border-radius: var(--radius); padding: 28px; border: 1px solid var(--line); transition: transform 0.35s var(--ease), box-shadow 0.35s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card h3 { font-size: 1.15rem; font-weight: 600; margin: 14px 0 8px; font-family: var(--font-body); }
.card p { color: var(--ink-2); font-size: 0.95rem; margin: 0; }
.card .icon { width: 36px; height: 36px; color: var(--terra); }
.card-num { font-family: var(--font-display); font-size: 2.6rem; color: var(--terra); line-height: 1; }
.feature-card { border-radius: var(--radius); overflow: hidden; position: relative; aspect-ratio: 4/5; color: #fff; display: flex; align-items: flex-end; }
.feature-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.feature-card:hover img { transform: scale(1.05); }
.feature-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(10, 30, 26, 0.85)); }
.feature-card-body { position: relative; z-index: 1; padding: 26px; }
.feature-card-body h3 { font-family: var(--font-display); font-size: 1.5rem; margin-bottom: 8px; }
.feature-card-body p { font-size: 0.92rem; color: rgba(255, 255, 255, 0.82); margin: 0; }
.feature-card.wide { aspect-ratio: 16/9; grid-column: span 2; }

/* Stats row */
.stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 24px; }
.stat { border-left: 2px solid var(--terra); padding-left: 18px; }
.stat strong { display: block; font-family: var(--font-display); font-size: clamp(2rem, 3.4vw, 3rem); line-height: 1; color: var(--green); }
.stat span { font-size: 0.86rem; color: var(--muted); }
.bg-green .stat strong { color: #fff; }

/* Split section */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split.reverse > :first-child { order: 2; }
.split-media { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; position: relative; }
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.split-media.tall { aspect-ratio: 3/4; }
.check-list { list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 14px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; }
.check-list .icon { width: 22px; height: 22px; color: var(--terra); margin-top: 2px; }
.check-list strong { display: block; }

/* Life scenes (horizontal scroll) */
.scenes { display: grid; grid-auto-flow: column; grid-auto-columns: min(78vw, 420px); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 20px 24px; margin: 0 -20px; scrollbar-width: none; }
.scenes::-webkit-scrollbar { display: none; }
.scene { scroll-snap-align: start; border-radius: var(--radius); overflow: hidden; position: relative; aspect-ratio: 3/4; color: #fff; display: flex; align-items: flex-end; }
.scene img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scene::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(10, 30, 26, 0.9)); }
.scene-body { position: relative; z-index: 1; padding: 26px; }
.scene-body .time { font-size: 0.74rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--terra-2); }
.scene-body h3 { font-family: var(--font-display); font-size: 1.6rem; margin: 8px 0; }
.scene-body p { font-size: 0.92rem; color: rgba(255, 255, 255, 0.85); margin: 0; }

/* Comparison */
.compare { background: #fff; border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; }
.compare table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.compare th, .compare td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare th { background: var(--sand); font-weight: 600; font-size: 0.82rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-2); }
.compare td:first-child { font-weight: 600; color: var(--green); }
.compare .hl { background: rgba(181, 103, 74, 0.08); font-weight: 600; }
.compare tr:last-child td { border-bottom: 0; }

/* Distances */
.distances { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.distance { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 20px; display: grid; gap: 4px; }
.distance .icon { color: var(--terra); width: 28px; height: 28px; margin-bottom: 8px; }
.distance strong { font-family: var(--font-display); font-size: 1.7rem; line-height: 1; color: var(--green); }
.distance span { font-size: 0.86rem; color: var(--muted); }
.distance b { font-weight: 600; font-size: 0.95rem; }

/* Trust */
.trust-section { background: var(--sand); }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.trust-card { background: #fff; border-radius: var(--radius); padding: 26px; border: 1px solid var(--line); }
.trust-card .icon { width: 34px; height: 34px; color: var(--terra); }
.trust-card h3 { font-size: 1.1rem; font-weight: 600; margin: 14px 0 8px; }
.trust-card p { font-size: 0.93rem; color: var(--ink-2); margin: 0; }
.trust-links { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 32px; }

/* Process steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step { position: relative; padding: 26px 24px 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.step::before { counter-increment: step; content: '0' counter(step); font-family: var(--font-display); font-size: 2.4rem; color: var(--terra); line-height: 1; display: block; margin-bottom: 12px; }
.step h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 8px; }
.step p { font-size: 0.92rem; color: var(--ink-2); margin: 0; }

/* Logos */
.logo-row { display: flex; flex-wrap: wrap; gap: 20px 36px; align-items: center; justify-content: center; }
.logo-row img { height: 34px; width: auto; max-width: 140px; object-fit: contain; filter: grayscale(1); opacity: 0.7; transition: filter 0.3s, opacity 0.3s; }
.logo-row img:hover { filter: none; opacity: 1; }

/* FAQ */
.faq-list { display: grid; gap: 10px; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 24px; font-weight: 600; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon { transform: rotate(90deg); transition: transform 0.3s; color: var(--terra); width: 20px; height: 20px; }
.faq-item[open] .faq-icon { transform: rotate(-90deg); }
.faq-answer { padding: 0 24px 22px; color: var(--ink-2); font-size: 0.97rem; }
.faq-answer p:last-child { margin: 0; }

/* CTA band */
.cta-band { padding: clamp(56px, 8vw, 96px) 0; }
.cta-band.dark { background: var(--green); color: #fff; }
.cta-band.dark .lead { color: rgba(255, 255, 255, 0.8); }
.cta-band.terracotta { background: var(--terra); color: #fff; }
.cta-band.terracotta .lead { color: rgba(255, 255, 255, 0.86); }
.cta-band.terracotta .btn-primary { background: var(--green); }
.cta-band.light { background: var(--sand); }
.cta-inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.cta-actions { display: grid; gap: 14px; justify-items: start; }
.cta-messengers { display: flex; gap: 10px; flex-wrap: wrap; }
.cta-phone { font-family: var(--font-display); font-size: 1.7rem; }

/* Catalog */
.catalog-layout { display: grid; grid-template-columns: 280px 1fr; gap: 32px; align-items: start; }
.filters { position: sticky; top: calc(var(--header-h) + 16px); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: grid; gap: 20px; }
.filters h2 { font-size: 1rem; font-weight: 700; }
.filters fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.filters legend { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 8px; font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; border: 0; padding: 0; margin: 0; }
.chips legend { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 8px; font-weight: 600; width: 100%; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; inset: 0; }
.chips span { display: inline-block; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); font-size: 0.86rem; font-weight: 600; color: var(--green); background: #fff; cursor: pointer; transition: background 0.2s, color 0.2s; }
.chips input:checked + span { background: var(--green); color: #fff; border-color: var(--green); }
.range-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.range-row input, .filters select, .lead-form input, .lead-form select, .lead-form textarea, .calc input, .calc select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); font: inherit; font-size: 0.95rem; background: #fff; color: var(--ink);
}
.range-row input:focus, .lead-form input:focus, .calc input:focus { outline: 2px solid rgba(181, 103, 74, 0.35); border-color: var(--terra); }
.filters .toggle { display: flex; align-items: center; gap: 10px; font-size: 0.92rem; cursor: pointer; }
.filters .toggle input { width: 18px; height: 18px; accent-color: var(--green); }
.catalog-toolbar { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.catalog-toolbar .count { font-size: 0.95rem; color: var(--ink-2); }
.catalog-toolbar .count strong { color: var(--green); }
.view-switch { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.view-switch a, .view-switch button { padding: 8px 16px; font-size: 0.84rem; font-weight: 600; background: #fff; border: 0; color: var(--green); }
.view-switch .is-active { background: var(--green); color: #fff; }
.lot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.lot-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform 0.35s var(--ease), box-shadow 0.35s; }
.lot-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.lot-plan { aspect-ratio: 4/3; background: var(--sand); display: grid; place-items: center; padding: 16px; position: relative; }
.lot-plan img { max-height: 100%; width: auto; max-width: 100%; mix-blend-mode: multiply; }
.lot-badges { position: absolute; top: 12px; left: 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.badge { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 5px 9px; border-radius: 999px; background: var(--green); color: #fff; }
.badge.terra { background: var(--terra); }
.badge.light { background: rgba(255, 255, 255, 0.9); color: var(--green); }
.lot-body { padding: 18px 20px 20px; display: grid; gap: 8px; }
.lot-body h3 { font-size: 1.05rem; font-weight: 600; }
.lot-meta { font-size: 0.84rem; color: var(--muted); }
.lot-price { display: flex; justify-content: space-between; align-items: baseline; margin-top: 6px; }
.lot-price strong { font-family: var(--font-display); font-size: 1.5rem; color: var(--green); }
.lot-price span { font-size: 0.8rem; color: var(--muted); }
.lot-features { display: flex; flex-wrap: wrap; gap: 6px; }
.lot-features span { font-size: 0.74rem; padding: 4px 8px; background: var(--sand); border-radius: 6px; color: var(--ink-2); }
.catalog-empty { text-align: center; padding: 60px 20px; background: #fff; border-radius: var(--radius); border: 1px dashed var(--line); }
.catalog-seo { max-width: 820px; }
.catalog-seo h2 { margin-top: 36px; }
.catalog-seo p, .catalog-seo li { color: var(--ink-2); }
.quick-links { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0; }
.quick-links a { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); font-size: 0.86rem; font-weight: 600; color: var(--green); background: #fff; transition: background 0.2s, color 0.2s; }
.quick-links a:hover, .quick-links a.is-active { background: var(--green); color: #fff; }

/* Chess */
.chess { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; overflow-x: auto; }
.chess h3 { font-size: 1.05rem; margin-bottom: 14px; }
.chess-grid { display: grid; gap: 6px; align-items: start; }
.chess-row { display: grid; grid-template-columns: 56px 1fr; gap: 8px; align-items: center; }
.chess-floor { font-size: 0.78rem; color: var(--muted); font-weight: 600; }
.chess-cells { display: flex; flex-wrap: wrap; gap: 6px; }
.chess-cell { display: grid; place-items: center; min-width: 56px; padding: 8px 6px; border-radius: 8px; background: var(--sand); font-size: 0.72rem; font-weight: 700; color: var(--green); border: 1px solid transparent; transition: background 0.2s, border-color 0.2s; text-align: center; line-height: 1.2; }
.chess-cell small { font-weight: 500; color: var(--muted); font-size: 0.66rem; }
.chess-cell:hover { background: #fff; border-color: var(--terra); }
.chess-cell.r1 { background: #e9f1ee; }
.chess-cell.r2 { background: #e5efe4; }
.chess-cell.r3 { background: #f3e9df; }
.chess-cell.r4 { background: #f5e3da; }
.chess-legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 0.78rem; color: var(--muted); margin-top: 14px; }
.chess-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }

/* Lot detail */
.lot-detail { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: start; }
.lot-gallery { display: grid; gap: 14px; }
.lot-gallery .main { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; aspect-ratio: 4/3; display: grid; place-items: center; }
.lot-gallery .main img { max-height: 100%; width: auto; max-width: 100%; }
.lot-thumbs { display: flex; gap: 10px; }
.lot-thumbs button { width: 92px; height: 72px; border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 6px; }
.lot-thumbs button.is-active { border-color: var(--terra); }
.lot-thumbs img { width: 100%; height: 100%; object-fit: contain; }
.lot-summary { position: sticky; top: calc(var(--header-h) + 16px); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: grid; gap: 18px; }
.lot-summary .price { font-family: var(--font-display); font-size: 2.4rem; color: var(--green); line-height: 1; }
.lot-summary .ppm { color: var(--muted); font-size: 0.9rem; }
.spec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; font-size: 0.93rem; }
.spec-grid div { border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.spec-grid dt { color: var(--muted); font-size: 0.78rem; }
.spec-grid dd { margin: 0; font-weight: 600; }
.lot-actions { display: grid; gap: 10px; }
.lot-text { max-width: 760px; margin-top: 40px; }
.mortgage-mini { background: var(--sand); border-radius: var(--radius-sm); padding: 16px; font-size: 0.9rem; display: grid; gap: 4px; }
.mortgage-mini strong { font-size: 1.2rem; color: var(--green); }
.similar { margin-top: 64px; }

/* Calculators */
.calc { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.calc-fields { display: grid; gap: 18px; }
.calc label { display: grid; gap: 6px; font-size: 0.86rem; font-weight: 600; color: var(--ink-2); }
.calc input[type="range"] { padding: 0; accent-color: var(--terra); height: 28px; }
.calc .val { font-weight: 700; color: var(--green); float: right; }
.calc-result { background: var(--green); color: #fff; border-radius: var(--radius); padding: 28px; display: grid; gap: 16px; align-content: start; }
.calc-result .big { font-family: var(--font-display); font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1; }
.calc-result small { display: block; color: rgba(255, 255, 255, 0.7); font-size: 0.8rem; margin-top: 4px; }
.calc-result .row { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid rgba(255, 255, 255, 0.15); padding-top: 12px; font-size: 0.92rem; }
.calc-result .btn { justify-self: start; margin-top: 8px; }
.calc-note { grid-column: 1 / -1; font-size: 0.78rem; color: var(--muted); margin: 0; }

/* Quiz */
.quiz { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; max-width: 760px; margin-inline: auto; }
.quiz-progress { height: 4px; background: var(--sand-2); border-radius: 2px; overflow: hidden; margin-bottom: 24px; }
.quiz-progress i { display: block; height: 100%; background: var(--terra); width: 0; transition: width 0.4s var(--ease); }
.quiz-step { display: none; }
.quiz-step.is-active { display: block; }
.quiz-step h3 { font-family: var(--font-display); font-size: 1.7rem; margin-bottom: 20px; }
.quiz-options { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.quiz-options label { position: relative; }
.quiz-options input { position: absolute; opacity: 0; inset: 0; }
.quiz-options span { display: block; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius-sm); font-weight: 600; cursor: pointer; transition: border-color 0.2s, background 0.2s; }
.quiz-options input:checked + span { border-color: var(--terra); background: rgba(181, 103, 74, 0.08); }
.quiz-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 24px; }
.quiz-result { display: none; }
.quiz-result.is-active { display: block; }

/* Lead form */
.lead-form { display: grid; gap: 14px; }
.lead-form label { display: grid; gap: 6px; font-size: 0.86rem; font-weight: 600; color: var(--ink-2); }
.lead-form .chips { margin-top: 4px; }
.form-note { font-size: 0.74rem; color: var(--muted); margin: 0; }
.form-note a { text-decoration: underline; }
.form-success { background: rgba(15, 60, 52, 0.06); border-radius: var(--radius-sm); padding: 18px; }
.form-success p { margin: 6px 0 0; font-size: 0.92rem; }
.lead-form.is-sent > :not(.form-success) { display: none; }
.lead-form.is-sent .form-success { display: block !important; }
.lead-form .error { color: #b03a2e; font-size: 0.82rem; }
.inline-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.inline-form .lead-form { grid-template-columns: 1fr 1fr auto; align-items: end; }
.inline-form .lead-form .form-note, .inline-form .lead-form .form-success { grid-column: 1 / -1; }

/* Modal */
.modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(10, 30, 26, 0.6); backdrop-filter: blur(4px); }
.modal-panel { position: relative; background: #fff; border-radius: var(--radius); padding: 36px; width: min(520px, 100%); max-height: 92vh; overflow: auto; animation: pop 0.35s var(--ease); }
.modal-panel h2 { font-family: var(--font-display); font-size: 1.9rem; margin-bottom: 10px; }
.modal-close { position: absolute; top: 12px; right: 14px; width: 40px; height: 40px; border: 0; background: transparent; font-size: 1.6rem; color: var(--muted); }
@keyframes pop { from { transform: translateY(16px); opacity: 0; } to { transform: none; opacity: 1; } }
body.modal-open { overflow: hidden; }

/* Floating */
.float-contact { position: fixed; right: 20px; bottom: 24px; display: grid; gap: 10px; z-index: 90; }
.float-btn { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; color: #fff; border: 0; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.4); transition: transform 0.25s var(--ease); }
.float-btn:hover { transform: scale(1.08); }
.float-btn .icon { width: 26px; height: 26px; }
.float-wa { background: #25d366; }
.float-tg { background: #2aabee; }
.float-call { background: var(--terra); }
.mobile-cta { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 95; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: rgba(251, 249, 245, 0.95); backdrop-filter: blur(10px); border-top: 1px solid var(--line); grid-template-columns: 1fr 1.4fr; gap: 10px; }
.mobile-cta .btn-ghost { color: var(--green); }

/* Footer */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, 0.78); padding: 72px 0 32px; font-size: 0.9rem; }
.footer-top { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 36px; }
.footer-brand img { filter: brightness(0) invert(1); height: 50px; width: auto; margin-bottom: 18px; }
.footer-brand p { max-width: 42ch; }
.footer-contacts { display: grid; gap: 6px; margin: 18px 0; }
.footer-phone { font-family: var(--font-display); font-size: 1.6rem; color: #fff; }
.footer-col { display: grid; gap: 8px; align-content: start; }
.footer-col h3 { font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--terra-2); margin-bottom: 8px; font-weight: 600; }
.footer-col a:hover { color: #fff; }
.site-footer .messenger-row a { background: rgba(255, 255, 255, 0.08); color: #fff; }
.footer-awards { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; margin-top: 48px; padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 0.8rem; }
.footer-awards img { height: 48px; width: auto; background: #fff; border-radius: 8px; padding: 6px; }
.footer-bottom { margin-top: 28px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 0.76rem; color: rgba(255, 255, 255, 0.5); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.footer-bottom a { text-decoration: underline; }

/* Article / prose */
.prose { max-width: 760px; }
.prose h2 { font-family: var(--font-display); font-size: 1.9rem; margin: 40px 0 14px; }
.prose h3 { font-size: 1.2rem; font-weight: 600; margin: 28px 0 10px; }
.prose p, .prose li { color: var(--ink-2); font-size: 1.02rem; }
.prose ul, .prose ol { padding-left: 22px; }
.prose blockquote { border-left: 3px solid var(--terra); margin: 24px 0; padding: 4px 0 4px 20px; font-family: var(--font-display); font-size: 1.35rem; color: var(--green); }
.prose img { border-radius: var(--radius); margin: 28px 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 0.95rem; }
.prose th, .prose td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; }
.prose th { background: var(--sand); }
.callout { background: var(--sand); border-radius: var(--radius); padding: 24px 28px; margin: 28px 0; border-left: 4px solid var(--terra); }
.callout p:last-child { margin: 0; }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform 0.35s var(--ease), box-shadow 0.35s; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.post-card img { aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.post-card-body { padding: 22px; display: grid; gap: 8px; }
.post-card-body time { font-size: 0.76rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.post-card-body h3 { font-size: 1.1rem; font-weight: 600; line-height: 1.3; }
.post-card-body p { font-size: 0.9rem; color: var(--ink-2); margin: 0; }
.tag { display: inline-block; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--terra); }

/* Gallery */
.masonry { columns: 3; column-gap: 18px; }
.masonry figure { margin: 0 0 18px; break-inside: avoid; border-radius: var(--radius-sm); overflow: hidden; position: relative; }
.masonry img { width: 100%; height: auto; transition: transform 0.8s var(--ease); }
.masonry figure:hover img { transform: scale(1.04); }
.masonry figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 16px; background: linear-gradient(transparent, rgba(10,30,26,0.8)); color: #fff; font-size: 0.82rem; }

/* Map */
.map-wrap { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16/8; background: var(--sand); }
.map-wrap iframe { width: 100%; height: 100%; border: 0; }

/* Timeline */
.timeline { display: grid; gap: 0; position: relative; padding-left: 28px; }
.timeline::before { content: ''; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.timeline-item { position: relative; padding: 0 0 32px; }
.timeline-item::before { content: ''; position: absolute; left: -28px; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--sand); border: 3px solid var(--terra); }
.timeline-item.done::before { background: var(--terra); }
.timeline-item time { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--terra); font-weight: 600; }
.timeline-item h3 { font-size: 1.1rem; font-weight: 600; margin: 6px 0; }
.timeline-item p { color: var(--ink-2); font-size: 0.95rem; margin: 0; }

/* Reveal */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; }
.no-js [data-reveal] { opacity: 1; transform: none; }

/* Marquee */
.marquee { overflow: hidden; white-space: nowrap; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 14px 0; font-family: var(--font-display); font-size: 1.3rem; color: var(--green); }
.marquee-track { display: inline-flex; gap: 48px; animation: marquee 40s linear infinite; }
.marquee-track span::after { content: '•'; margin-left: 48px; color: var(--terra); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Responsive */
@media (max-width: 1100px) {
  .main-nav { display: none; }
  .burger { display: flex; }
  .footer-top { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .price-inner { grid-template-columns: repeat(2, 1fr); }
  .price-inner .btn { grid-column: 1 / -1; justify-self: start; }
  .trust-grid, .grid-3, .grid-4, .steps, .distances, .post-grid { grid-template-columns: repeat(2, 1fr); }
  .catalog-layout { grid-template-columns: 1fr; }
  .filters { position: static; }
  .lot-detail { grid-template-columns: 1fr; }
  .lot-summary { position: static; }
}
@media (max-width: 760px) {
  :root { --header-h: 64px; }
  .header-phone { display: none; }
  .header-actions .btn { display: none; }
  .brand img { height: 36px; }
  .split, .cta-inner, .calc, .grid-2 { grid-template-columns: 1fr; }
  .split.reverse > :first-child { order: 0; }
  .feature-card.wide { grid-column: span 1; aspect-ratio: 4/5; }
  .trust-grid, .grid-3, .grid-4, .steps, .distances, .post-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .mobile-cta { display: grid; }
  .float-contact { bottom: 86px; right: 14px; }
  .float-call { display: none; }
  .hero-cinema { min-height: 600px; }
  .hero-content { padding-top: calc(var(--header-h) + 24px); padding-bottom: 92px; align-items: flex-end; }
  .hero-content .h1 { font-size: clamp(2rem, 9vw, 2.6rem); max-width: 100%; }
  .hero-lead { font-size: 0.95rem; margin-top: 12px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .hero-cta { margin-top: 20px; gap: 10px; }
  .hero-cta .btn-lg { padding: 13px 20px; font-size: 0.92rem; }
  .hero-chips { margin-top: 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; }
  .hero-shade { background: linear-gradient(180deg, rgba(10,30,26,0.6) 0%, rgba(10,30,26,0.15) 30%, rgba(10,30,26,0.5) 55%, rgba(10,30,26,0.9) 100%); }
  .hero-nav { gap: 10px; bottom: 18px; }
  .hero-nav-label { display: none; }
  .hero-chips { font-size: 0.8rem; gap: 8px 14px; }
  .inline-form .lead-form { grid-template-columns: 1fr; }
  .masonry { columns: 2; }
  .hero-stats { gap: 20px 28px; }
  .page-hero { min-height: 80vh; }
  .modal-panel { padding: 28px 22px; }
  .price-inner { gap: 18px; }
  .compare th, .compare td { padding: 12px; font-size: 0.86rem; }
  .spec-grid { grid-template-columns: 1fr 1fr; }
  body { padding-bottom: 70px; }
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { transition: none; opacity: 1; transform: none; }
  .marquee-track { animation: none; }
  html { scroll-behavior: auto; }
}
.quiz-step.shake { animation: shake 0.4s; }
@keyframes shake { 0%,100% { transform: translateX(0); } 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }

/* ===== Interactive genplan ===== */
.genplan { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(300px, 0.8fr); gap: 28px; align-items: start; }
.genplan-stage { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16/9; background: #1a2b27; box-shadow: var(--shadow); isolation: isolate; }
.genplan-base img, .genplan-layer { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.genplan-layer { opacity: 0; transition: opacity 0.45s var(--ease); pointer-events: none; }
.genplan-layer.is-on { opacity: 1; }
.genplan-svg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; }
.genplan-area { fill: var(--c); fill-opacity: 0; stroke: var(--c); stroke-width: 0; stroke-opacity: 0; cursor: pointer; pointer-events: all; transition: fill-opacity 0.3s, stroke-opacity 0.3s, stroke-width 0.3s; }
.genplan-area:hover, .genplan-area.is-active { fill-opacity: 0.28; stroke-opacity: 0.95; stroke-width: 2; }
.genplan-area.is-dim { fill-opacity: 0.06; }
.genplan-pin { position: absolute; z-index: 3; transform: translate(-50%, -50%); background: none; border: 0; padding: 0; cursor: pointer; display: flex; align-items: center; gap: 8px; color: #fff; font: 600 0.72rem/1 var(--font-body); letter-spacing: 0.04em; text-shadow: 0 1px 8px rgba(0,0,0,0.6); }
.genplan-dot { width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--terra); box-shadow: 0 0 0 0 rgba(181,103,74,0.6); animation: pin-pulse 2.4s infinite; flex: none; }
.genplan-pin:nth-child(odd) .genplan-dot { animation-delay: 0.8s; }
.genplan-pin-label { background: rgba(15,60,52,0.78); backdrop-filter: blur(6px); padding: 6px 10px; border-radius: 999px; white-space: nowrap; opacity: 0.92; transition: background 0.3s, transform 0.3s var(--ease); }
.genplan-pin:hover .genplan-pin-label, .genplan-pin.is-active .genplan-pin-label { background: var(--terra); transform: translateX(2px); }
.genplan-pin.is-active .genplan-dot { animation: none; box-shadow: 0 0 0 6px rgba(181,103,74,0.35); }
@keyframes pin-pulse { 0% { box-shadow: 0 0 0 0 rgba(181,103,74,0.6); } 70% { box-shadow: 0 0 0 12px rgba(181,103,74,0); } 100% { box-shadow: 0 0 0 0 rgba(181,103,74,0); } }
.genplan-hint { position: absolute; left: 16px; bottom: 14px; z-index: 3; display: inline-flex; align-items: center; gap: 8px; color: #fff; font-size: 0.78rem; background: rgba(15,60,52,0.7); backdrop-filter: blur(6px); padding: 8px 12px; border-radius: 999px; pointer-events: none; transition: opacity 0.4s; }
.genplan-hint .icon { width: 16px; height: 16px; }
.genplan.is-touched .genplan-hint { opacity: 0; }
.genplan-side { position: relative; min-height: 320px; }
.genplan-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; animation: card-in 0.4s var(--ease); }
.genplan-card h3 { font-family: var(--font-display); font-size: 1.7rem; font-weight: 500; margin: 0 0 10px; line-height: 1.15; }
.genplan-card p { color: var(--ink-2); margin: 0 0 16px; font-size: 0.95rem; }
.genplan-card .eyebrow { margin-bottom: 8px; }
.genplan-card .btn .icon { width: 16px; height: 16px; margin-left: 6px; }
@keyframes card-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.genplan-legend { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 6px; }
.genplan-legend button { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; background: none; border: 0; padding: 8px 10px; border-radius: var(--radius-sm); font: 500 0.9rem var(--font-body); color: var(--ink); cursor: pointer; transition: background 0.25s; }
.genplan-legend button:hover { background: var(--sand); }
.genplan-legend i { width: 12px; height: 12px; border-radius: 3px; border: 1px solid rgba(0,0,0,0.15); flex: none; }
.bg-green .genplan-card, .bg-dark .genplan-card { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.12); color: #fff; }
.bg-green .genplan-card p, .bg-green .genplan-legend button { color: rgba(255,255,255,0.8); }
.bg-green .genplan-legend button:hover { background: rgba(255,255,255,0.08); }
@media (max-width: 1100px) {
  .genplan { grid-template-columns: 1fr; }
  .genplan-side { min-height: 0; }
}
@media (max-width: 760px) {
  .genplan-pin-label { display: none; }
  .genplan-pin.is-active .genplan-pin-label { display: block; position: absolute; left: 20px; top: -6px; }
  .genplan-card { padding: 22px; }
  .genplan-card h3 { font-size: 1.4rem; }
  .genplan-hint { font-size: 0.72rem; }
}

/* ===== Offer band (Крымская ипотека) ===== */
.offer-band { display: grid; grid-template-columns: auto 1fr auto; gap: 18px 28px; align-items: center; background: linear-gradient(100deg, #fff6ef, #fdeee3); border: 1px solid rgba(181,103,74,0.25); border-radius: var(--radius); padding: 18px 26px; text-decoration: none; color: var(--ink); transition: transform 0.3s var(--ease), box-shadow 0.3s; }
.offer-band:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.offer-tag { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; color: #fff; background: var(--terra); padding: 7px 12px; border-radius: 999px; white-space: nowrap; }
.offer-title { font-size: 1.05rem; line-height: 1.35; }
.offer-title strong { font-family: var(--font-display); font-size: 1.45rem; font-weight: 600; color: var(--green); margin-right: 6px; }
.offer-meta { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 0.9rem; color: var(--terra); white-space: nowrap; }
.offer-meta .icon { width: 18px; height: 18px; }
.card-accent { border-color: var(--terra); box-shadow: 0 0 0 1px var(--terra) inset; }
.calc-hint { grid-column: 1 / -1; font-size: 0.82rem; color: var(--ink-2); margin: 4px 0 0; padding: 10px 12px; background: var(--sand); border-radius: var(--radius-sm); }
.calc-result .calc-hint { background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.85); }
.calc-combo b { color: var(--terra-2); }
.mortgage-mini.is-accent { border: 1px solid var(--terra); background: #fff6ef; }
.mortgage-mini small { display: block; font-size: 0.78rem; margin-top: 4px; }
.badge.green { background: var(--green); color: #fff; }
.compare-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.compare-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.compare-card.is-win { border-color: var(--terra); background: #fff8f3; }
.compare-big { font-family: var(--font-display); font-size: clamp(2.2rem, 4vw, 3.4rem); color: var(--green); line-height: 1; margin: 6px 0 10px; }
.compare-big small { font-size: 1rem; font-family: var(--font-body); color: var(--muted); margin-left: 6px; }
.compare-card .check-list.muted { color: var(--muted); }
.compare-card .check-list.muted .icon { color: var(--muted); }
@media (max-width: 900px) {
  .offer-band { grid-template-columns: 1fr; gap: 10px; padding: 18px 20px; }
  .offer-tag { justify-self: start; }
  .compare-cards { grid-template-columns: 1fr; }
}

/* ===== Program fit table ===== */
.fit-table { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.fit-row { display: grid; grid-template-columns: 1.1fr 1.6fr 1.6fr; gap: 16px; padding: 14px 20px; border-top: 1px solid var(--line); font-size: 0.93rem; align-items: center; }
.fit-row:first-child { border-top: 0; }
.fit-row > span:first-child { font-weight: 600; color: var(--green); }
.fit-row > span:nth-child(2) { color: var(--ink-2); }
.fit-head { background: var(--sand); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.fit-head > span:first-child { color: var(--muted); }
.fit-row .ok { display: inline-flex; align-items: flex-start; gap: 8px; font-weight: 600; }
.fit-row .ok .icon { width: 18px; height: 18px; color: var(--green-3); flex: none; margin-top: 2px; }
.calc-fields label small { display: block; font-weight: 400; margin-top: 6px; font-size: 0.76rem; }
@media (max-width: 760px) {
  .fit-row { grid-template-columns: 1fr; gap: 6px; }
  .fit-head { display: none; }
  .fit-row > span:nth-child(2)::before { content: 'Условие: '; color: var(--muted); }
}

/* ===== Presentation-derived blocks (Oct 2026) ===== */
/* Team track record */
.track-record { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: center; }
.track-record-media { margin: 0; border-radius: var(--radius); overflow: hidden; background: #fff; border: 1px solid var(--line); }
.track-record-media img { width: 100%; height: auto; display: block; }
.track-record-media figcaption { padding: 10px 16px; font-size: 0.85rem; color: var(--muted); }
.track-record-list { list-style: none; margin: 0; padding: 0; counter-reset: tr; display: grid; gap: 12px; }
.track-record-list li { counter-increment: tr; display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; row-gap: 2px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 18px; }
.track-record-list li::before { grid-row: 1 / span 2; content: counter(tr, decimal-leading-zero); font-family: var(--font-display); font-size: 1.3rem; color: var(--terracotta, #b4583a); }
.track-record-list strong { grid-column: 2; display: block; font-family: var(--font-display); font-size: 1.15rem; color: var(--green); }
.track-record-list span { grid-column: 2; font-size: 0.9rem; color: var(--muted); }
.check-panel { margin-top: 40px; background: var(--green); color: #fff; border-radius: var(--radius); padding: 32px; }
.check-panel-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 20px; }
.check-panel .eyebrow { color: rgba(255,255,255,0.7); }
.check-panel .h3 { color: #fff; margin: 4px 0 0; }
.check-panel .btn-ghost { border: 1px solid rgba(255,255,255,0.35); color: #fff; background: transparent; }
.check-panel .btn-ghost:hover { background: rgba(255,255,255,0.1); }
.check-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 24px; }
.check-grid li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.98rem; }
.check-grid .icon { color: #d7b37b; flex: none; width: 22px; height: 22px; margin-top: 1px; }

/* Nearby list */
.nearby-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.nearby-item { display: flex; gap: 12px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; }
.nearby-item .icon { width: 26px; height: 26px; color: var(--green); flex: none; margin-top: 2px; }
.nearby-item.kind-kids .icon { color: var(--terracotta, #b4583a); }
.nearby-item.kind-sport .icon { color: var(--green-3); }
.nearby-item strong { display: block; font-size: 0.95rem; line-height: 1.3; }
.nearby-item span { font-size: 0.8rem; color: var(--muted); }

/* Nature grid */
.nature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.nature-card { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; background: var(--green); }
.nature-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.nature-card:hover img { transform: scale(1.05); }
.nature-card-body { position: absolute; inset: auto 0 0 0; padding: 60px 20px 20px; color: #fff; background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(10,30,26,0.85) 100%); display: grid; grid-template-columns: auto 1fr; grid-template-areas: "i t" "i n" "i s"; column-gap: 12px; }
.nature-card-body .icon { grid-area: i; width: 32px; height: 32px; color: #d7b37b; }
.nature-card-body strong { grid-area: t; font-family: var(--font-display); font-size: 1.5rem; line-height: 1; }
.nature-card-body b { grid-area: n; font-weight: 600; margin-top: 4px; }
.nature-card-body span { grid-area: s; font-size: 0.85rem; opacity: 0.8; }

/* Kids / media */
.media-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.media-duo img { width: 100%; height: auto; object-fit: cover; border-radius: var(--radius); aspect-ratio: 3/4; }
.media-duo img:first-child { margin-top: 32px; }
.kids-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.kids-strip img { width: 100%; height: auto; aspect-ratio: 3/2; object-fit: cover; border-radius: var(--radius); }

/* Townhouse details */
.detail-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.detail-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.detail-card img { width: 100%; height: auto; aspect-ratio: 4/3; object-fit: cover; }
.detail-body { padding: 20px 22px 24px; position: relative; }
.detail-body .card-num { position: absolute; top: -22px; right: 20px; background: var(--terracotta, #b4583a); color: #fff; font-family: var(--font-display); font-size: 1rem; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; }
.detail-body h3 { font-size: 1.15rem; margin: 0 0 8px; }
.detail-body p { margin: 0; color: var(--ink-2); font-size: 0.95rem; }

/* Apartment mix */
.mix-wrap { display: grid; grid-template-columns: 1.5fr 1fr; gap: 32px; align-items: start; }
.mix-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.mix-table th, .mix-table td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); font-size: 0.95rem; vertical-align: middle; }
.mix-table th { background: var(--sand); font-weight: 600; color: var(--ink-2); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; }
.mix-table tr:last-child td { border-bottom: 0; }
.mix-bar { display: inline-block; width: 90px; height: 8px; background: var(--sand-2); border-radius: 4px; vertical-align: middle; margin-right: 8px; overflow: hidden; }
.mix-bar i { display: block; height: 100%; background: var(--green-3); border-radius: 4px; }
.mix-table small { color: var(--muted); }
.space-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.space-fact { background: var(--green); color: #fff; border-radius: var(--radius-sm); padding: 18px; }
.space-fact strong { display: block; font-family: var(--font-display); font-size: 1.7rem; line-height: 1; margin-bottom: 8px; color: #d7b37b; }
.space-fact span { font-size: 0.85rem; opacity: 0.85; line-height: 1.35; display: block; }

/* Renovation */
.reno-compare { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.reno-col { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; padding-bottom: 22px; }
.reno-col img { width: 100%; height: auto; aspect-ratio: 4/3; object-fit: cover; }
.reno-col h3 { margin: 18px 22px 8px; font-size: 1.25rem; }
.reno-col p { margin: 0 22px; color: var(--ink-2); font-size: 0.95rem; }
.reno-col.is-accent { border-color: var(--terracotta, #b4583a); box-shadow: 0 12px 40px rgba(180, 88, 58, 0.15); }
.reno-col.is-accent h3::after { content: 'Рекомендуем'; display: inline-block; margin-left: 10px; font: 600 0.7rem/1 var(--font-body); text-transform: uppercase; letter-spacing: 0.06em; background: var(--terracotta, #b4583a); color: #fff; padding: 5px 8px; border-radius: 999px; vertical-align: middle; }

/* Investor growth */
.growth-card { background: var(--green); color: #fff; border-radius: var(--radius); padding: 40px 36px; text-align: center; }
.growth-num { font-family: var(--font-display); font-size: clamp(5rem, 9vw, 8rem); line-height: 0.9; color: #d7b37b; }
.growth-num span { font-size: 0.5em; }
.growth-label { font-family: var(--font-display); font-size: 1.6rem; margin: 8px 0 18px; }
.growth-card p { color: rgba(255,255,255,0.85); margin: 0 0 14px; }
.growth-card small { display: block; font-size: 0.78rem; color: rgba(255,255,255,0.55); }

@media (max-width: 1100px) {
  .nature-grid, .detail-grid, .reno-compare { grid-template-columns: 1fr 1fr; }
  .check-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .track-record, .mix-wrap { grid-template-columns: 1fr; }
  .nearby-list { grid-template-columns: 1fr; }
  .nature-grid, .detail-grid, .reno-compare, .kids-strip, .check-grid, .space-facts { grid-template-columns: 1fr; }
  .media-duo img:first-child { margin-top: 0; }
  .media-duo img { aspect-ratio: 4/3; }
  .mix-table th:nth-child(4), .mix-table td:nth-child(4) { display: none; }
  .check-panel { padding: 24px 20px; }
}
