:root {
  --green-950: #061d16;
  --green-900: #0f3b2e;
  --green-800: #184c3a;
  --green-700: #2c6b52;
  --green-500: #78a18d;
  --green-100: #e4eee8;
  --sage: #edf3ee;
  --paper: #f5f7f5;
  --surface: #ffffff;
  --ink: #17231e;
  --muted: #63706a;
  --line: #d9e2dc;
  --shadow: 0 18px 50px rgba(15, 59, 46, 0.1);
  --shadow-strong: 0 28px 80px rgba(6, 29, 22, 0.2);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: Montserrat, Inter, system-ui, sans-serif; letter-spacing: 0; }
h1 { margin-bottom: 18px; font-size: 4.35rem; line-height: 0.96; font-weight: 900; }
h2 { margin-bottom: 14px; color: var(--green-900); font-size: 3rem; line-height: 1.02; font-weight: 900; }
h3 { margin-bottom: 9px; color: var(--green-900); font-size: 1.35rem; line-height: 1.12; font-weight: 850; }
p { margin-bottom: 0; color: var(--muted); font-size: 1rem; line-height: 1.46; }
.eyebrow { margin: 0 0 9px; color: var(--green-700); font-size: 0.76rem; line-height: 1.25; font-weight: 900; text-transform: uppercase; }
.eyebrow.light { color: #d9eee3; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  display: grid;
  grid-template-columns: minmax(360px, auto) minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 16px;
  min-height: 64px;
  padding: 6px max(22px, calc((100vw - 1360px) / 2));
  border-bottom: 1px solid rgba(15, 59, 46, 0.1);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
  transition: box-shadow 180ms ease, background 180ms ease;
}
.site-header.is-scrolled { background: rgba(255, 255, 255, 0.98); box-shadow: 0 10px 28px rgba(6, 29, 22, 0.09); }
.brand-family { display: flex; align-items: center; gap: 9px; min-width: 0; }
.brand-family a { display: flex; align-items: center; min-width: 0; }
.brand-family a + a { padding-left: 9px; border-left: 1px solid rgba(15, 59, 46, 0.15); }
.brand-family img { width: clamp(112px, 9.5vw, 136px); height: 42px; object-fit: contain; }
.site-nav { justify-self: center; display: flex; align-items: center; gap: 21px; color: var(--green-900); font-size: 0.86rem; font-weight: 800; }
.site-nav a { padding: 9px 0; border-bottom: 2px solid transparent; white-space: nowrap; }
.site-nav a:hover { border-bottom-color: var(--green-700); }
.phone-link { color: var(--green-900); font-size: 0.9rem; font-weight: 900; white-space: nowrap; }
.header-cta, .primary-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 19px;
  border: 1px solid var(--green-900);
  border-radius: 8px;
  background: var(--green-900);
  color: #fff;
  font-weight: 850;
  line-height: 1.1;
  box-shadow: 0 12px 28px rgba(15, 59, 46, 0.16);
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}
.header-cta:hover, .primary-button:hover { transform: translateY(-2px); background: var(--green-800); box-shadow: 0 17px 34px rgba(15, 59, 46, 0.22); }
.primary-button.light-button { border-color: #fff; background: #fff; color: var(--green-900); }
.primary-button.light-button:hover { background: var(--sage); }
.primary-button svg, .header-cta svg, .menu-button svg, .direction-card svg { width: 18px; height: 18px; flex: 0 0 auto; }
.menu-button { display: none; width: 42px; height: 42px; padding: 0; place-items: center; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--green-900); }

.home-hero { position: relative; isolation: isolate; min-height: 590px; overflow: hidden; background: url("assets/hero-coop-real-assets.png") center / cover no-repeat; color: #fff; }
.home-hero__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(4, 24, 18, 0.97) 0%, rgba(7, 37, 28, 0.86) 44%, rgba(8, 40, 31, 0.28) 100%); }
.home-hero__inner { width: min(1220px, calc(100% - 48px)); min-height: 590px; margin: 0 auto; padding: 52px 0; display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(390px, 0.72fr); gap: 52px; align-items: center; }
.home-hero__copy { max-width: 700px; min-width: 0; }
.hero-lead { max-width: 650px; color: rgba(255, 255, 255, 0.88); font-size: 1.15rem; line-height: 1.45; }
.video-shell { padding: 9px; border: 1px solid rgba(15, 59, 46, 0.14); border-radius: 8px; background: rgba(255, 255, 255, 0.72); box-shadow: var(--shadow); }
.hero-video { border-color: rgba(255, 255, 255, 0.22); background: rgba(255, 255, 255, 0.1); box-shadow: 0 26px 70px rgba(0, 0, 0, 0.32); }
.video-placeholder { aspect-ratio: 16 / 9; min-height: 250px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 22px; border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 6px; background: #030403; color: #fff; text-align: center; }
.video-placeholder .play-mark { display: grid; place-items: center; width: 62px; height: 62px; margin-bottom: 18px; border: 2px solid rgba(255, 255, 255, 0.76); border-radius: 50%; background: rgba(255, 255, 255, 0.06); }
.video-placeholder .play-mark svg { width: 24px; height: 24px; margin-left: 3px; }
.video-placeholder strong { font-family: Montserrat, Inter, system-ui, sans-serif; font-size: 1.7rem; line-height: 1.04; font-weight: 900; }
.video-placeholder > span:last-child { margin-top: 9px; color: rgba(255, 255, 255, 0.64); font-size: 0.92rem; line-height: 1.35; }

.direction-intro, .product-section, .content-section { width: min(1220px, calc(100% - 48px)); margin: 0 auto; padding: 68px 0; }
.compact-title { max-width: 760px; margin-bottom: 25px; }
.direction-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.direction-card { display: grid; grid-template-columns: minmax(145px, 0.78fr) minmax(0, 1.22fr); min-height: 166px; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: 0 14px 38px rgba(15, 59, 46, 0.07); transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease; }
.direction-card:hover { transform: translateY(-4px); border-color: rgba(44, 107, 82, 0.42); box-shadow: 0 23px 52px rgba(15, 59, 46, 0.13); }
.direction-card__logo { display: grid; place-items: center; min-width: 0; padding: 16px; border-right: 1px solid var(--line); background: var(--sage); }
.direction-card__logo img { width: 100%; max-width: 172px; max-height: 92px; object-fit: contain; }
.direction-card__copy { align-self: center; min-width: 0; padding: 18px; }
.direction-card__copy h3 { font-size: 1.13rem; }
.direction-card__copy p { font-size: 0.9rem; line-height: 1.4; }
.direction-card__copy > span { display: flex; align-items: center; gap: 7px; margin-top: 12px; color: var(--green-900); font-size: 0.78rem; font-weight: 850; }

.product-section { scroll-margin-top: 76px; padding-top: 78px; padding-bottom: 78px; }
.product-section + .product-section { border-top: 1px solid var(--line); }
.product-stroy { box-shadow: 0 0 0 100vmax var(--sage); clip-path: inset(0 -100vmax); }
.product-zemlya { box-shadow: 0 0 0 100vmax #f3f5ef; clip-path: inset(0 -100vmax); }
.product-heading { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 38px; align-items: center; margin-bottom: 28px; }
.product-heading > img { width: 210px; max-height: 90px; object-fit: contain; }
.product-heading > div { max-width: 860px; }
.product-heading h2 { margin-bottom: 11px; }
.product-layout { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(430px, 0.88fr); gap: 18px; align-items: stretch; }
.product-layout > *, .detail-hero__copy, .detail-hero .video-shell, .calculator, .form-grid > * { min-width: 0; max-width: 100%; }
.home-hero h1, .detail-hero h1, .product-heading h2 { overflow-wrap: normal; word-break: normal; }
.product-layout > .video-shell { display: grid; align-items: stretch; }
.product-layout .video-placeholder { width: 100%; height: 100%; min-height: 470px; aspect-ratio: auto; overflow: hidden; }

.house-showcase { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0 0 18px; }
.house-model-card { min-width: 0; padding: 0; overflow: hidden; border: 2px solid transparent; border-radius: 8px; background: #fff; color: var(--ink); text-align: left; box-shadow: 0 12px 34px rgba(15, 59, 46, 0.08); transition: transform 170ms ease, border-color 170ms ease, box-shadow 170ms ease; }
.house-model-card:hover, .house-model-card.is-active { transform: translateY(-3px); border-color: var(--green-700); box-shadow: 0 18px 42px rgba(15, 59, 46, 0.15); }
.house-model-card img { width: 100%; aspect-ratio: 16 / 8.5; object-fit: cover; }
.house-model-card > span { display: grid; gap: 3px; padding: 13px 15px 14px; }
.house-model-card strong { color: var(--green-900); font-size: 1rem; }
.house-model-card small { color: var(--muted); font-size: 0.78rem; }

.calculator { display: grid; align-content: center; gap: 16px; padding: 24px; border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: var(--shadow); }
.calculator-dark { border-color: var(--green-900); background: var(--green-900); color: #fff; }
.calculator__heading h3 { margin: 0; font-size: 1.65rem; }
.calculator-dark .calculator__heading h3, .calculator-dark label, .calculator-dark .calculator-note { color: #fff; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.form-grid.one-column { grid-template-columns: 1fr; }
.range-label { grid-column: 1 / -1; }
.first-payment-control { display: grid; gap: 9px; padding: 14px; border: 1px solid var(--line); border-radius: 8px; background: #f2f8f4; }
.first-payment-control__heading { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; color: var(--green-900); font-size: 0.86rem; line-height: 1.28; font-weight: 800; }
.first-payment-control__heading strong { flex: 0 0 auto; font-size: 1.02rem; font-weight: 900; }
.first-payment-entry { display: grid; grid-template-columns: auto minmax(150px, 230px); align-items: center; justify-content: space-between; gap: 14px; }
.first-payment-entry input { min-height: 44px; text-align: right; font-weight: 850; }
.first-payment-control small { color: var(--muted); font-size: 0.76rem; line-height: 1.35; }
label { display: grid; gap: 7px; color: var(--green-900); font-size: 0.86rem; line-height: 1.28; font-weight: 800; }
input, select, textarea { width: 100%; min-height: 48px; padding: 10px 13px; border: 1px solid var(--line); border-radius: 8px; outline: none; background: #fff; color: var(--ink); }
input:focus, select:focus, textarea:focus { border-color: var(--green-700); box-shadow: 0 0 0 3px rgba(44, 107, 82, 0.13); }
textarea { min-height: 96px; resize: vertical; }
input[type="range"] { min-height: 22px; height: 22px; padding: 0; border: 0; border-radius: 0; accent-color: var(--green-700); background: transparent; }
.calculator-dark input[type="range"] { accent-color: #fff; }
.assumption-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 11px 13px; border: 1px solid rgba(255, 255, 255, 0.17); border-radius: 8px; background: rgba(255, 255, 255, 0.08); color: rgba(255, 255, 255, 0.78); font-size: 0.86rem; }
.assumption-row strong { flex: 0 0 auto; color: #fff; }
.result-grid { display: grid; gap: 9px; }
.result-grid--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.result-grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.result-grid--four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.result-grid article { min-height: 92px; padding: 14px; border-radius: 8px; background: var(--green-900); color: #fff; }
.calculator-dark .result-grid article { border: 1px solid rgba(255, 255, 255, 0.16); background: rgba(255, 255, 255, 0.1); }
.result-grid span { display: block; margin-bottom: 7px; color: rgba(255, 255, 255, 0.68); font-size: 0.75rem; line-height: 1.22; font-weight: 750; }
.result-grid strong { display: block; font-size: 1.14rem; line-height: 1.1; font-weight: 900; }
.calculator-note { color: var(--muted); font-size: 0.79rem; line-height: 1.38; }
.calculator > .primary-button { justify-self: start; }

.site-footer { display: grid; justify-items: center; gap: 24px; padding: 46px max(20px, calc((100vw - 1220px) / 2)); background: var(--green-950); color: #fff; text-align: center; }
.footer-family { width: min(720px, 100%); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; align-items: center; }
.footer-family img { width: 100%; height: 58px; object-fit: contain; }
.footer-contact { width: min(690px, 100%); display: grid; justify-items: center; gap: 10px; }
.footer-contact > span { color: #bdd2c7; font-size: 0.88rem; font-weight: 800; text-transform: uppercase; }
.footer-contact h2 { margin: 0; color: #fff; font-size: 2.05rem; line-height: 1.05; }
.footer-phone { color: #fff; font-size: 1.65rem; line-height: 1; font-weight: 900; white-space: nowrap; }

/* Direction pages */
.detail-hero { position: relative; isolation: isolate; overflow: hidden; background-position: center; background-size: cover; color: #fff; }
.detail-hero--capital { background-image: url("assets/capital-consultation.png"); }
.detail-hero--land { background-image: url("assets/land-morning.png"); }
.detail-hero--stroy { background-image: url("assets/home-evening.png"); }
.detail-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(4, 24, 18, 0.96) 0%, rgba(7, 36, 27, 0.83) 48%, rgba(8, 40, 31, 0.27) 100%); }
.detail-hero__inner { width: min(1220px, calc(100% - 48px)); min-height: 620px; margin: 0 auto; padding: 50px 0; display: grid; grid-template-columns: minmax(0, 0.94fr) minmax(380px, 0.68fr); gap: 50px; align-items: center; }
.detail-hero__copy { max-width: 700px; }
.detail-lockup { width: 220px; max-height: 84px; margin-bottom: 22px; object-fit: contain; }
.detail-hero h1 { font-size: 3.65rem; }
.detail-hero p:not(.eyebrow) { color: rgba(255, 255, 255, 0.86); font-size: 1.06rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.secondary-button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0 19px; border: 1px solid rgba(255, 255, 255, 0.44); border-radius: 8px; background: rgba(255, 255, 255, 0.09); color: #fff; font-weight: 850; transition: background 160ms ease, transform 160ms ease; }
.secondary-button:hover { transform: translateY(-2px); background: rgba(255, 255, 255, 0.16); }
.section-heading { max-width: 850px; margin-bottom: 25px; }
.section-heading.split { max-width: none; display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(300px, 0.48fr); gap: 36px; align-items: end; }
.section-heading.split > p { padding-bottom: 3px; }
.content-section + .content-section { border-top: 1px solid var(--line); }
.story-band { display: grid; grid-template-columns: minmax(0, 0.82fr) minmax(360px, 1fr); gap: 22px; align-items: stretch; }
.story-band__image { min-height: 420px; overflow: hidden; border-radius: 8px; box-shadow: var(--shadow-strong); }
.story-band__image img { width: 100%; height: 100%; object-fit: cover; }
.story-band__copy { display: grid; align-content: center; padding: 30px; border-radius: 8px; background: var(--green-900); color: #fff; }
.story-band__copy h2, .story-band__copy p, .story-band__copy .eyebrow { color: #fff; }
.steps-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.steps-list li, .info-card, .faq-item { border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: 0 12px 34px rgba(15, 59, 46, 0.06); }
.steps-list li { padding: 20px; }
.steps-list b { display: inline-grid; place-items: center; width: 34px; height: 34px; margin-bottom: 14px; border-radius: 50%; background: var(--green-100); color: var(--green-700); font-size: 0.75rem; }
.steps-list p { color: var(--ink); font-weight: 650; }
.info-band { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 26px; align-items: center; padding: 28px; border-radius: 8px; background: var(--green-900); color: #fff; }
.info-band h2, .info-band p, .info-band .eyebrow { color: #fff; }
.metric-row { display: flex; gap: 9px; }
.metric-row article { min-width: 138px; padding: 15px; border: 1px solid rgba(255, 255, 255, 0.17); border-radius: 8px; background: rgba(255, 255, 255, 0.09); }
.metric-row strong, .metric-row span { display: block; }
.metric-row strong { font-size: 1.35rem; }
.metric-row span { margin-top: 5px; color: rgba(255, 255, 255, 0.72); font-size: 0.78rem; }
.case-grid { display: grid; grid-template-columns: 1.18fr 0.82fr; gap: 13px; }
.case-card { overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: var(--shadow); }
.case-card img { width: 100%; height: 250px; object-fit: cover; }
.case-card:first-child img { height: 340px; }
.case-card__copy { padding: 19px; }
.case-card__copy span { color: var(--green-700); font-size: 0.75rem; font-weight: 850; text-transform: uppercase; }
.case-card__copy h3 { margin-top: 7px; }
.faq-list { display: grid; gap: 9px; }
details.faq-item { padding: 0; overflow: hidden; }
details.faq-item summary { position: relative; padding: 18px 52px 18px 20px; color: var(--green-900); font-family: Montserrat, Inter, system-ui, sans-serif; font-size: 1.03rem; font-weight: 850; list-style: none; cursor: pointer; }
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::after { content: "+"; position: absolute; top: 50%; right: 20px; transform: translateY(-50%); color: var(--green-700); font-size: 1.5rem; }
details.faq-item[open] summary::after { content: "−"; }
details.faq-item p { padding: 0 20px 18px; }
.lead-panel { display: grid; grid-template-columns: minmax(0, 0.75fr) minmax(360px, 1fr); gap: 32px; align-items: start; }
.lead-form { display: grid; gap: 13px; padding: 22px; border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: var(--shadow); }
.form-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.form-status { min-height: 18px; margin: 0; color: var(--green-900); font-size: 0.8rem; font-weight: 750; }
.form-status a { text-decoration: underline; }
.form-status.is-success { padding: 12px; border-radius: 8px; background: var(--green-100); }
.lead-cta-card { display: grid; align-content: center; justify-items: start; gap: 8px; min-height: 210px; padding: 26px; border-radius: 8px; background: var(--green-900); color: #fff; box-shadow: var(--shadow-strong); }
.lead-cta-card strong { font-size: 1.35rem; line-height: 1.14; }
.lead-cta-card p { color: rgba(255, 255, 255, 0.72); }
.lead-cta-card .primary-button { margin-top: 8px; border-color: #fff; background: #fff; color: var(--green-900); }

.lead-dialog { width: min(720px, calc(100% - 28px)); max-height: calc(100dvh - 28px); padding: 0; overflow: auto; border: 0; border-radius: 8px; background: var(--paper); box-shadow: 0 40px 120px rgba(0, 0, 0, 0.42); }
.lead-dialog::backdrop { background: rgba(3, 19, 14, 0.76); backdrop-filter: blur(6px); }
.dialog-close { position: absolute; top: 12px; right: 12px; z-index: 2; width: 40px; height: 40px; display: grid; place-items: center; padding: 0; border: 1px solid rgba(255, 255, 255, 0.24); border-radius: 8px; background: rgba(255, 255, 255, 0.1); color: #fff; }
.dialog-close svg { width: 20px; height: 20px; }
.dialog-copy { padding: 30px 64px 28px 28px; background: var(--green-900); color: #fff; }
.dialog-copy h2, .dialog-copy p, .dialog-copy .eyebrow { color: #fff; }
.dialog-copy h2 { margin-bottom: 9px; font-size: 2.15rem; }
.lead-dialog .lead-form { border: 0; box-shadow: none; }
.lead-dialog .lead-submit { width: 100%; }
.field-error { min-height: 16px; color: #9d2f2f; font-size: 0.72rem; line-height: 1.3; font-weight: 700; }
[aria-invalid="true"] { border-color: #9d2f2f; }
.consent-row { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: start; color: var(--ink); font-size: 0.78rem; font-weight: 650; }
.consent-row input { width: 20px; min-height: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--green-700); }
.consent-row a { color: var(--green-700); text-decoration: underline; }
.lead-submit:disabled { cursor: wait; opacity: 0.72; }

.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
.chat-widget { position: fixed; right: max(18px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom)); z-index: 90; }
.chat-launcher { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 0 17px; border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 8px; background: var(--green-900); color: #fff; font-weight: 850; box-shadow: 0 18px 48px rgba(6, 29, 22, 0.28); transition: transform 180ms ease, background 180ms ease, bottom 180ms ease; }
.chat-launcher:hover { transform: translateY(-2px); background: var(--green-800); }
.chat-launcher svg { width: 20px; height: 20px; }
.chat-panel { position: absolute; right: 0; bottom: 60px; width: min(370px, calc(100vw - 28px)); max-height: min(620px, calc(100dvh - 100px)); overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: 0 28px 90px rgba(6, 29, 22, 0.32); }
.chat-panel[hidden] { display: none; }
.chat-header { display: grid; grid-template-columns: minmax(0, 1fr) 38px; gap: 12px; align-items: center; padding: 16px; background: var(--green-900); color: #fff; }
.chat-header strong, .chat-header span { display: block; }
.chat-header strong { font-size: 1rem; }
.chat-header span { margin-top: 3px; color: rgba(255, 255, 255, 0.68); font-size: 0.72rem; line-height: 1.3; }
.chat-close { width: 36px; height: 36px; display: grid; place-items: center; padding: 0; border: 1px solid rgba(255, 255, 255, 0.22); border-radius: 8px; background: rgba(255, 255, 255, 0.08); color: #fff; }
.chat-close svg { width: 18px; height: 18px; }
.chat-notice { margin: 0; padding: 11px 14px; border-bottom: 1px solid var(--line); background: var(--sage); color: var(--muted); font-size: 0.7rem; line-height: 1.35; }
.chat-messages { height: 250px; display: flex; flex-direction: column; gap: 8px; overflow-y: auto; padding: 14px; background: #f8faf8; }
.chat-message { max-width: 84%; padding: 10px 12px; border-radius: 8px; font-size: 0.82rem; line-height: 1.4; white-space: pre-wrap; }
.chat-message--manager { align-self: flex-start; border: 1px solid var(--line); background: #fff; color: var(--ink); }
.chat-message--visitor { align-self: flex-end; background: var(--green-900); color: #fff; }
.chat-message__author { display: block; margin-bottom: 3px; color: var(--green-700); font-size: 0.7rem; line-height: 1.2; font-weight: 850; }
.chat-message__body { display: block; }
.chat-status { min-height: 0; margin: 0; padding: 0 14px; color: var(--muted); font-size: 0.7rem; line-height: 1.35; }
.chat-status:not(:empty) { padding-top: 9px; }
.chat-reconnect { margin: 8px 14px 0; padding: 7px 10px; border: 1px solid var(--green-700); border-radius: 8px; background: #fff; color: var(--green-900); font-size: 0.76rem; font-weight: 800; }
.chat-form { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 44px; gap: 8px; align-items: end; padding: 12px 14px 14px; }
.chat-form textarea { min-height: 44px; max-height: 120px; padding: 10px 12px; resize: none; }
.chat-send { width: 44px; height: 44px; display: grid; place-items: center; padding: 0; border: 1px solid var(--green-900); border-radius: 8px; background: var(--green-900); color: #fff; }
.chat-send:disabled { opacity: 0.58; }
.chat-send svg { width: 19px; height: 19px; }
.chat-honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; opacity: 0; }
.footer-in-view .chat-launcher { transform: translateY(-105px); }
.footer-in-view .chat-panel { bottom: 165px; }

.reveal-ready [data-reveal] { opacity: 0; transform: translateY(20px); transition: opacity 560ms ease, transform 560ms cubic-bezier(.2,.8,.2,1); }
.reveal-ready [data-reveal].is-visible { opacity: 1; transform: none; }
.privacy-page .site-header { grid-template-columns: minmax(0, 1fr) auto; }
.privacy-back { justify-self: end; }
.privacy-content { width: min(880px, calc(100% - 40px)); min-height: calc(100dvh - 64px); margin: 0 auto; padding: 72px 0; }
.privacy-content h1 { color: var(--green-900); font-size: 3.6rem; }
.privacy-content > p:not(.eyebrow) { max-width: 780px; font-size: 1.06rem; }
.privacy-content .info-band { margin-top: 36px; }

@media (max-width: 1180px) {
  .site-header { grid-template-columns: minmax(350px, 1fr) auto auto; }
  .site-nav { position: fixed; top: 64px; left: 0; right: 0; display: none; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; padding: 1px; background: var(--line); box-shadow: var(--shadow); }
  body.menu-open .site-nav { display: grid; }
  .site-nav a { min-height: 50px; display: grid; place-items: center; padding: 9px; background: #fff; }
  .menu-button { display: grid; }
  .phone-link { display: none; }
  .home-hero__inner, .detail-hero__inner { grid-template-columns: 1fr; gap: 24px; }
  .home-hero__inner { padding: 42px 0; }
  .home-hero__copy { max-width: 800px; }
  .hero-video, .detail-hero .video-shell { max-width: 760px; }
  .product-layout { grid-template-columns: 1fr; }
  .product-layout .video-placeholder { min-height: 390px; }
}

@media (max-width: 900px) {
  h1 { font-size: 3.2rem; }
  h2 { font-size: 2.25rem; }
  .direction-cards { grid-template-columns: 1fr; }
  .direction-card { grid-template-columns: 190px minmax(0, 1fr); min-height: 142px; }
  .direction-card__logo img { max-width: 158px; }
  .story-band, .section-heading.split, .info-band, .lead-panel, .case-grid { grid-template-columns: 1fr; }
  .steps-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .info-band { gap: 20px; }
}

@media (max-width: 720px) {
  .site-header { grid-template-columns: minmax(0, 1fr) 42px; gap: 8px; min-height: 58px; padding: 5px 12px; }
  .brand-family { gap: 5px; }
  .brand-family a + a { padding-left: 5px; }
  .brand-family img { width: clamp(72px, 16vw, 106px); height: 34px; }
  .header-cta { display: none; }
  .site-nav { top: 58px; grid-template-columns: 1fr; }
  .home-hero, .home-hero__inner { min-height: auto; }
  .home-hero__inner, .detail-hero__inner, .direction-intro, .product-section, .content-section { width: min(100% - 30px, 1220px); }
  .home-hero__inner { padding: 28px 0 32px; }
  .hero-lead { font-size: 1rem; line-height: 1.42; }
  .hero-video { padding: 7px; }
  .video-placeholder { min-height: 198px; padding: 17px; }
  .video-placeholder .play-mark { width: 50px; height: 50px; margin-bottom: 13px; }
  .video-placeholder strong { font-size: 1.3rem; }
  .direction-intro, .product-section, .content-section { padding-top: 48px; padding-bottom: 48px; }
  .product-section { padding-top: 40px; padding-bottom: 44px; }
  .direction-card { grid-template-columns: 168px minmax(0, 1fr); min-height: 134px; }
  .direction-card__logo { padding: 13px; }
  .direction-card__logo img { max-width: 145px; }
  .direction-card__copy { padding: 15px; }
  .direction-card__copy p { font-size: 0.86rem; }
  .direction-card__copy > span { margin-top: 10px; }
  .product-heading { grid-template-columns: 1fr; gap: 15px; margin-bottom: 21px; }
  .product-heading > img { width: 196px; max-height: 76px; }
  .product-layout .video-placeholder { min-height: 198px; }
  .house-showcase { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(248px, 82%); overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px 1px 12px; }
  .house-model-card { scroll-snap-align: start; }
  .calculator { padding: 19px; gap: 14px; }
  .form-grid, .result-grid--three, .result-grid--four { grid-template-columns: 1fr; }
  .first-payment-control__heading { align-items: flex-start; }
  .first-payment-entry { grid-template-columns: 1fr; gap: 7px; }
  .first-payment-entry input { text-align: left; }
  .result-grid article { min-height: 78px; padding: 13px; }
  .calculator > .primary-button, .hero-actions .primary-button, .hero-actions .secondary-button { width: 100%; }
  .detail-hero__inner { min-height: auto; padding: 30px 0; }
  .detail-hero h1 { font-size: 2.65rem; }
  .detail-lockup { width: 190px; margin-bottom: 17px; }
  .steps-list { grid-template-columns: 1fr; }
  .metric-row { display: grid; grid-template-columns: 1fr 1fr; }
  .case-card img, .case-card:first-child img { height: 238px; }
  .story-band__image { min-height: 300px; }
  .story-band__copy { padding: 23px; }
  .site-footer { padding: 38px 15px; gap: 20px; }
  .footer-family { gap: 8px; }
  .footer-family img { height: 43px; }
  .footer-contact h2 { font-size: 1.72rem; }
  .footer-contact .primary-button { width: 100%; }
  .chat-launcher span { font-size: 0; }
  .chat-launcher span::after { content: "Чат"; font-size: 0.82rem; }
  .chat-launcher { min-width: 82px; padding: 0 13px; }
}

@media (max-width: 460px) {
  h1 { font-size: 2.45rem; }
  h2 { font-size: 1.82rem; }
  h3 { font-size: 1.16rem; }
  .first-payment-control__heading { flex-direction: column; gap: 4px; }
  .brand-family img { width: clamp(67px, 19vw, 83px); height: 31px; }
  .direction-card { grid-template-columns: 124px minmax(0, 1fr); min-height: 126px; }
  .direction-card__logo { padding: 10px; }
  .direction-card__logo img { max-width: 112px; }
  .direction-card__copy { padding: 13px; }
  .direction-card__copy h3 { font-size: 1rem; }
  .direction-card__copy > span { display: none; }
  .result-grid--two { grid-template-columns: 1fr; }
  .assumption-row { align-items: flex-start; flex-direction: column; gap: 4px; }
  .metric-row { grid-template-columns: 1fr; }
  .footer-family img { height: 38px; }
  .footer-phone { font-size: 1.42rem; }
  .dialog-copy { padding: 26px 54px 24px 20px; }
  .dialog-copy h2 { font-size: 1.78rem; }
  .lead-dialog .lead-form { padding: 18px; }
  .chat-widget { right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); }
  .chat-launcher { min-height: 46px; padding: 0 14px; font-size: 0.82rem; }
  .chat-panel { bottom: 56px; width: calc(100vw - 24px); max-height: calc(100dvh - 82px); }
  .chat-messages { height: min(240px, 35dvh); }
  .footer-in-view .chat-launcher { transform: translateY(-118px); }
  .footer-in-view .chat-panel { bottom: 174px; }
  .privacy-page .brand-family a:nth-child(n+2) { display: none; }
  .privacy-back { min-height: 40px; padding: 0 12px; font-size: 0.75rem; }
  .privacy-content { padding: 48px 0; }
  .privacy-content h1 { font-size: 2.25rem; }
}

/* Bright editorial pass: photo-led, compact and clearly branded. */
:root {
  --green-950: #08261c;
  --green-900: #0b4934;
  --green-800: #136044;
  --green-700: #2f7d5d;
  --green-500: #80aa94;
  --green-100: #e1f2e8;
  --sage: #f0f8f3;
  --paper: #ffffff;
  --surface: #ffffff;
  --ink: #14231d;
  --muted: #596861;
  --line: #d5e4da;
  --shadow: 0 18px 48px rgba(8, 62, 43, 0.11);
  --shadow-strong: 0 28px 72px rgba(8, 44, 32, 0.2);
}

html, body { max-width: 100%; overflow-x: clip; }
body { background: #fff; }
main { max-width: 100%; overflow-x: clip; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }

.site-header {
  min-height: 62px;
  border-bottom-color: rgba(11, 73, 52, 0.12);
  background: rgba(255, 255, 255, 0.97);
}
.site-header.is-scrolled { box-shadow: 0 12px 32px rgba(8, 50, 35, 0.1); }
.brand-family img { height: 44px; }
.site-nav a { position: relative; border-bottom: 0; }
.site-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 4px; height: 2px; background: var(--green-700); transition: right 180ms ease; }
.site-nav a:hover::after { right: 0; }
.header-cta, .primary-button { box-shadow: 0 13px 30px rgba(11, 73, 52, 0.2); }

.home-hero {
  min-height: 620px;
  background-position: center right;
  color: var(--green-950);
}
.home-hero__shade {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.99) 0%, rgba(255, 255, 255, 0.95) 40%, rgba(255, 255, 255, 0.64) 61%, rgba(255, 255, 255, 0.08) 100%);
}
.home-hero__inner { min-height: 620px; grid-template-columns: minmax(0, 0.94fr) minmax(410px, 0.68fr); gap: 58px; }
.home-hero h1 { color: var(--green-950); font-size: 4.65rem; line-height: 0.94; }
.home-hero .eyebrow.light { color: var(--green-700); }
.hero-lead { max-width: 620px; color: #34463e; font-size: 1.16rem; }
.hero-video { border-color: rgba(255, 255, 255, 0.88); background: rgba(255, 255, 255, 0.82); box-shadow: 0 30px 76px rgba(8, 45, 32, 0.22); }
.video-shell { background: rgba(255, 255, 255, 0.9); }
.video-placeholder { background: #040807; }
.video-placeholder .play-mark { animation: playPulse 2.8s ease-in-out infinite; }

.direction-intro { padding-top: 76px; padding-bottom: 42px; }
.compact-title { max-width: 820px; margin-bottom: 30px; }
.compact-title h2 { color: var(--green-950); }
.direction-cards { gap: 18px; }
.direction-card {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 118px auto auto;
  min-height: 292px;
  overflow: hidden;
  border-color: #cfe1d5;
  background: #fff;
  box-shadow: 0 20px 54px rgba(8, 62, 43, 0.1);
  transition: transform 220ms cubic-bezier(.2,.8,.2,1), box-shadow 220ms ease, border-color 220ms ease;
}
.direction-card:hover { transform: translateY(-7px); border-color: rgba(47, 125, 93, 0.58); box-shadow: 0 30px 68px rgba(8, 62, 43, 0.18); }
.direction-card__brand { position: relative; display: flex; align-items: center; min-width: 0; padding: 18px 144px 18px 20px; overflow: hidden; border-bottom: 1px solid rgba(11, 73, 52, 0.11); background: #eef8f2; }
.direction-card--stroy .direction-card__brand { background: #f5f8f4; }
.direction-card--zemlya .direction-card__brand { background: #e7f3ea; }
.direction-card__lockup { position: relative; z-index: 2; width: 172px; max-height: 76px; object-fit: contain; }
.direction-card__object { position: absolute; z-index: 1; top: -13px; right: 8px; width: 132px; height: 132px; object-fit: contain; animation: objectFloat 5.5s ease-in-out infinite alternate; }
.direction-card--stroy .direction-card__object { animation-delay: -1.7s; }
.direction-card--zemlya .direction-card__object { animation-delay: -3.2s; }
.direction-card__copy { align-self: start; padding: 20px 20px 15px; }
.direction-card__copy h3 { margin-bottom: 7px; font-size: 1.26rem; }
.direction-card__copy p { font-size: 0.91rem; line-height: 1.4; }
.direction-card__action { align-self: end; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 50px; padding: 0 20px; border-top: 1px solid var(--line); color: var(--green-900); font-size: 0.8rem; font-weight: 900; }
.direction-card__action svg { width: 20px; height: 20px; transition: transform 180ms ease; }
.direction-card:hover .direction-card__action svg { transform: translate(3px, 3px); }

.product-section { padding-top: 88px; padding-bottom: 88px; }
.product-section + .product-section { border-top-color: #d7e7dc; }
.product-stroy { box-shadow: 0 0 0 100vmax #f0f8f3; }
.product-zemlya { box-shadow: 0 0 0 100vmax #f8faf7; }
.product-heading { grid-template-columns: 198px minmax(0, 1fr); gap: 42px; margin-bottom: 34px; }
.product-heading > img { width: 190px; max-height: 86px; padding: 13px 15px; border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: 0 13px 34px rgba(8, 62, 43, 0.09); }
.product-heading h2 { position: relative; padding-bottom: 17px; color: var(--green-950); }
.product-heading h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 68px; height: 4px; border-radius: 3px; background: #6ea889; }
.product-layout { gap: 24px; }
.product-layout > .video-shell, .calculator { box-shadow: 0 22px 58px rgba(8, 62, 43, 0.12); }
.calculator { padding: 28px; border-color: #cfe0d5; }
.calculator-dark { border-color: #cfe0d5; background: #fff; color: var(--ink); }
.calculator-dark .calculator__heading h3, .calculator-dark label, .calculator-dark .calculator-note { color: var(--green-950); }
.calculator-dark .eyebrow.light { color: var(--green-700); }
.calculator-dark input[type="range"] { accent-color: var(--green-700); }
.calculator-dark .assumption-row { border-color: var(--line); background: #edf6f0; color: var(--muted); }
.calculator-dark .assumption-row strong { color: var(--green-900); }
.calculator-dark .result-grid article { border-color: var(--green-900); background: var(--green-900); }
.calculator-dark > .light-button { border-color: var(--green-900); background: var(--green-900); color: #fff; }
.calculator-dark > .light-button:hover { background: var(--green-800); }
.result-grid article { background: linear-gradient(145deg, #0b4934, #126044); }
.result-grid strong { font-size: 1.24rem; }

.stroy-video-feature { width: min(980px, 100%); margin: 0 auto 32px; }
.stroy-video-feature .video-shell { box-shadow: 0 25px 68px rgba(8, 62, 43, 0.15); }
.stroy-video-feature .video-placeholder { min-height: 420px; }
.showcase-heading { margin: 0 0 15px; }
.showcase-heading h3 { margin: 0; font-size: 1.55rem; }
.house-showcase { gap: 16px; margin-bottom: 26px; }
.house-model-card { border-color: #d6e4da; box-shadow: 0 17px 44px rgba(8, 62, 43, 0.1); }
.house-model-card img { transition: transform 320ms cubic-bezier(.2,.8,.2,1); }
.house-model-card:hover img, .house-model-card.is-active img { transform: scale(1.035); }
.house-model-card > span { padding: 16px 17px 17px; }
.house-model-card strong { font-size: 1.08rem; }
.stroy-calculator-wrap { width: min(980px, 100%); margin: 0 auto; }
.calculator-wide { width: 100%; }

.detail-hero { color: var(--green-950); }
.detail-hero::before { background: linear-gradient(90deg, rgba(255, 255, 255, 0.99) 0%, rgba(255, 255, 255, 0.94) 45%, rgba(255, 255, 255, 0.6) 66%, rgba(255, 255, 255, 0.08) 100%); }
.detail-hero__inner { min-height: 640px; }
.detail-hero h1 { color: var(--green-950); }
.detail-hero .eyebrow.light { color: var(--green-700); }
.detail-hero p:not(.eyebrow) { color: #34463e; }
.detail-hero .video-shell { border-color: rgba(255, 255, 255, 0.88); background: rgba(255, 255, 255, 0.84); box-shadow: 0 28px 72px rgba(8, 45, 32, 0.22); }
.detail-hero .primary-button.light-button { border-color: var(--green-900); background: var(--green-900); color: #fff; }
.detail-hero .secondary-button { border-color: rgba(11, 73, 52, 0.42); background: rgba(255, 255, 255, 0.8); color: var(--green-900); }
.detail-hero .secondary-button:hover { background: #fff; }
.story-band__image img, .case-card img { transition: transform 520ms cubic-bezier(.2,.8,.2,1); }
.story-band:hover .story-band__image img, .case-card:hover img { transform: scale(1.025); }
.steps-list li { position: relative; overflow: hidden; border-top: 4px solid #82b89d; transition: transform 180ms ease, box-shadow 180ms ease; }
.steps-list li:hover { transform: translateY(-4px); box-shadow: 0 20px 46px rgba(8, 62, 43, 0.12); }
.faq-item, .case-card, .lead-form { border-color: #d2e2d8; }
.lead-cta-card, .info-band, .story-band__copy { background: #0b4934; }

.reveal-ready [data-reveal] { opacity: 0; transform: translateY(26px) scale(0.988); transition: opacity 620ms ease, transform 620ms cubic-bezier(.2,.8,.2,1); }
.reveal-ready [data-reveal].is-visible { opacity: 1; transform: none; }

@keyframes playPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
  50% { transform: scale(1.055); box-shadow: 0 0 0 10px rgba(255, 255, 255, 0.08); }
}

@keyframes objectFloat {
  from { transform: translateY(0) rotate(-1deg); }
  to { transform: translateY(-5px) rotate(1deg); }
}

@media (max-width: 1180px) {
  .home-hero__shade, .detail-hero::before { background: linear-gradient(90deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.9) 58%, rgba(255, 255, 255, 0.46) 100%); }
  .home-hero__inner { grid-template-columns: 1fr; }
  .hero-video, .detail-hero .video-shell { width: min(760px, 100%); }
}

@media (max-width: 900px) {
  .direction-card { grid-template-columns: 1fr; grid-template-rows: 112px auto auto; min-height: 264px; }
  .direction-card__brand { padding-right: 170px; }
  .direction-card__lockup { width: 190px; }
  .direction-card__object { right: 22px; width: 145px; height: 145px; }
}

@media (max-width: 720px) {
  .site-header { min-height: 58px; }
  .brand-family img { height: 36px; }
  .home-hero__shade, .detail-hero::before { background: rgba(255, 255, 255, 0.84); }
  .home-hero { background-position: 66% center; }
  .home-hero h1 { font-size: 3rem; line-height: 0.98; }
  .home-hero__inner { padding-top: 34px; }
  .direction-intro { padding-top: 54px; padding-bottom: 36px; }
  .compact-title { margin-bottom: 22px; }
  .direction-cards { gap: 13px; }
  .direction-card { grid-template-columns: 1fr; grid-template-rows: 104px auto auto; min-height: 246px; }
  .direction-card__brand { padding: 14px 126px 14px 16px; }
  .direction-card__lockup { width: 155px; }
  .direction-card__object { top: -8px; right: 4px; width: 116px; height: 116px; }
  .direction-card__copy { padding: 16px 16px 12px; }
  .direction-card__action { min-height: 46px; padding: 0 16px; }
  .product-section { padding-top: 52px; padding-bottom: 56px; }
  .product-heading { gap: 17px; margin-bottom: 26px; }
  .product-heading > img { width: 188px; padding: 11px 13px; }
  .product-heading h2 { padding-bottom: 14px; }
  .product-heading h2 { overflow-wrap: anywhere; }
  .calculator { padding: 20px; }
  .stroy-video-feature { margin-bottom: 24px; }
  .stroy-video-feature .video-placeholder { min-height: 198px; }
  .showcase-heading h3 { font-size: 1.28rem; }
  .house-showcase { margin-bottom: 20px; }
  .detail-hero__inner { padding-top: 38px; padding-bottom: 38px; }
  .chat-launcher { width: 50px; min-width: 50px; padding: 0; border-radius: 50%; }
  .chat-launcher span { display: none; }
  .chat-launcher span::after { content: ""; }
}

@media (max-width: 460px) {
  .site-header { min-height: 62px; padding-left: 10px; padding-right: 10px; }
  .brand-family { gap: 3px; }
  .brand-family a + a { padding-left: 3px; }
  .brand-family img { width: clamp(78px, 22.5vw, 88px); height: 36px; }
  .home-hero h1 { font-size: 2.55rem; }
  .hero-lead { font-size: 0.96rem; }
  .direction-card { min-height: 232px; }
  .direction-card__brand { padding-right: 112px; }
  .direction-card__lockup { width: 142px; }
  .direction-card__object { width: 104px; height: 104px; }
  .direction-card__copy h3 { font-size: 1.08rem; }
  .direction-card__copy p { font-size: 0.84rem; }
  .direction-card__action { font-size: 0.75rem; }
}

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

/* Chapter design v1: stronger brand cards and clear photo-led direction changes. */
.direction-card {
  grid-template-rows: 142px auto auto;
  min-height: 310px;
  border-color: #c7dbce;
  box-shadow: 0 22px 58px rgba(8, 62, 43, 0.12);
}
.direction-card__brand {
  padding: 20px 124px 20px 18px;
}
.direction-card__lockup {
  width: 228px;
  max-height: 96px;
  filter: drop-shadow(0 5px 12px rgba(8, 62, 43, 0.08));
}
.direction-card__object {
  top: 16px;
  right: 12px;
  width: 110px;
  height: 110px;
}
.direction-card__copy {
  padding-top: 22px;
}

.product-section {
  padding-top: 58px;
}
.product-capital {
  box-shadow: 0 0 0 100vmax #f7faf8;
  clip-path: inset(0 -100vmax);
}
.product-stroy {
  box-shadow: 0 0 0 100vmax #edf6f0;
}
.product-zemlya {
  box-shadow: 0 0 0 100vmax #f4f7f1;
}
.product-heading--chapter {
  position: relative;
  isolation: isolate;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 40px;
  min-height: 382px;
  margin-bottom: 36px;
  padding: 42px 46px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.46);
  border-radius: 8px;
  background-repeat: no-repeat;
  background-size: cover;
  color: #fff;
  box-shadow: 0 30px 76px rgba(8, 45, 32, 0.2);
}
.product-heading--chapter::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(5, 38, 27, 0.96) 0%, rgba(8, 60, 42, 0.88) 48%, rgba(8, 48, 35, 0.54) 72%, rgba(6, 35, 26, 0.12) 100%);
}
.product-heading--chapter::after {
  content: "";
  position: absolute;
  left: 46px;
  right: 46px;
  bottom: 25px;
  height: 1px;
  background: rgba(255, 255, 255, 0.34);
}
.product-capital .product-heading--chapter {
  background-image: url("assets/capital-consultation.png");
  background-position: center 58%;
}
.product-stroy .product-heading--chapter {
  background-image: url("assets/home-evening.png");
  background-position: center 64%;
}
.product-zemlya .product-heading--chapter {
  background-image: url("assets/land-morning.png");
  background-position: center 64%;
}
.product-heading--chapter > img {
  position: relative;
  z-index: 1;
  width: 244px;
  max-height: 110px;
  padding: 15px 17px;
  border-color: rgba(255, 255, 255, 0.76);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 46px rgba(3, 25, 17, 0.24);
}
.product-heading--chapter .product-heading__copy {
  position: relative;
  z-index: 1;
  max-width: 760px;
  padding-bottom: 30px;
}
.product-heading--chapter .eyebrow {
  color: #d7eee2;
}
.product-heading--chapter h2 {
  max-width: 790px;
  margin-bottom: 13px;
  color: #fff;
  font-size: 2.85rem;
  line-height: 1.01;
  text-shadow: 0 3px 18px rgba(2, 21, 14, 0.28);
}
.product-heading--chapter h2::after {
  background: #d9eee3;
}
.product-heading--chapter p:not(.eyebrow) {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.02rem;
}

.site-footer {
  position: relative;
  isolation: isolate;
  min-height: 480px;
  align-content: center;
  padding-top: 70px;
  padding-bottom: 70px;
  background:
    linear-gradient(90deg, rgba(4, 30, 21, 0.95), rgba(6, 48, 34, 0.82)),
    url("assets/cover-journey.png") center 68% / cover no-repeat;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.18);
}
.footer-family {
  width: min(780px, 100%);
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.24);
}
.footer-family img {
  height: 66px;
}
.footer-contact {
  width: min(820px, 100%);
  gap: 13px;
}
.footer-contact h2 {
  font-size: 2.7rem;
  line-height: 1.02;
}
.footer-note {
  max-width: 650px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.97rem;
}
.footer-contact .primary-button {
  min-width: 260px;
  margin-top: 4px;
}

@media (max-width: 900px) {
  .direction-card {
    grid-template-rows: 138px auto auto;
    min-height: 284px;
  }
  .direction-card__brand {
    padding-right: 150px;
  }
  .direction-card__lockup {
    width: 236px;
  }
  .direction-card__object {
    right: 22px;
    width: 112px;
    height: 112px;
  }
  .product-heading--chapter {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 28px;
    min-height: 400px;
    padding: 34px;
  }
  .product-heading--chapter::after {
    left: 34px;
    right: 34px;
  }
  .product-heading--chapter > img {
    width: 216px;
  }
  .product-heading--chapter h2 {
    font-size: 2.35rem;
  }
}

/* Final launch pass: one visual rhythm, verified legal identity and tighter mobile layout. */
.brand-family a[aria-current="page"] {
  position: relative;
}

.brand-family a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: -6px;
  height: 3px;
  border-radius: 3px;
  background: var(--green-700);
}

.footer-family a {
  display: grid;
  place-items: center;
  min-width: 0;
  padding: 5px;
  border-radius: 8px;
  transition: background 180ms ease, transform 180ms ease;
}

.footer-family a:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.08);
}

.cooperative-trust {
  scroll-margin-top: 88px;
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(430px, 1.14fr);
  gap: 0;
  padding-top: 0;
  padding-bottom: 58px;
  overflow: hidden;
  color: #fff;
}

.cooperative-trust__intro {
  display: grid;
  align-content: center;
  min-height: 330px;
  padding: 40px;
  border-radius: 8px 0 0 8px;
  background: var(--green-900);
  box-shadow: 0 24px 64px rgba(8, 45, 32, 0.18);
}

.cooperative-trust__intro h2,
.cooperative-trust__intro p,
.cooperative-trust__intro .eyebrow {
  color: #fff;
}

.cooperative-trust__intro h2 {
  font-size: 2.45rem;
}

.cooperative-trust__intro > p:last-child {
  color: rgba(255, 255, 255, 0.78);
}

.cooperative-trust__facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  min-width: 0;
  margin: 0;
  padding: 1px;
  border: 1px solid var(--line);
  border-left: 0;
  border-radius: 0 8px 8px 0;
  background: var(--line);
  box-shadow: 0 24px 64px rgba(8, 45, 32, 0.1);
}

.cooperative-trust__facts div {
  display: grid;
  align-content: center;
  min-width: 0;
  min-height: 164px;
  padding: 24px;
  background: #fff;
}

.cooperative-trust__facts dt {
  margin-bottom: 8px;
  color: var(--green-700);
  font-size: 0.74rem;
  line-height: 1.25;
  font-weight: 900;
  text-transform: uppercase;
}

.cooperative-trust__facts dd {
  margin: 0;
  color: var(--green-950);
  font-family: Montserrat, Inter, system-ui, sans-serif;
  font-size: 1.03rem;
  line-height: 1.22;
  font-weight: 850;
  overflow-wrap: anywhere;
}

.legal-section--accent {
  border-left: 5px solid var(--green-700);
  background: var(--sage);
}

.form-status.is-error {
  padding: 12px;
  border: 1px solid #d7b8b8;
  border-radius: 8px;
  background: #fff4f4;
  color: #7c2929;
}

.form-status.is-error a {
  color: #7c2929;
  font-weight: 900;
}

@media (max-width: 900px) {
  .cooperative-trust {
    grid-template-columns: 1fr;
  }

  .cooperative-trust__intro {
    min-height: 0;
    border-radius: 8px 8px 0 0;
  }

  .cooperative-trust__facts {
    border-top: 0;
    border-left: 1px solid var(--line);
    border-radius: 0 0 8px 8px;
  }
}

@media (max-width: 720px) {
  .story-band,
  .story-band__copy {
    min-height: 520px;
  }

  .story-band::after {
    background: linear-gradient(180deg, rgba(5, 35, 25, 0.9) 0%, rgba(5, 35, 25, 0.76) 54%, rgba(5, 35, 25, 0.94) 100%);
  }

  .story-band__copy {
    align-content: start;
    padding: 32px 20px;
  }

  .journey-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 92px;
    grid-template-rows: auto auto auto;
    align-items: start;
    gap: 8px 12px;
    padding: 20px 18px;
  }

  .journey-heading__copy {
    display: contents;
  }

  .journey-heading__copy .eyebrow {
    grid-column: 1;
    grid-row: 1;
    max-width: none;
    align-self: center;
  }

  .journey-heading__copy h2 {
    grid-column: 1 / -1;
    grid-row: 2;
    margin: 8px 0 3px;
    font-size: 1.95rem;
  }

  .journey-heading__copy > p:last-child {
    grid-column: 1 / -1;
    grid-row: 3;
  }

  .journey-heading__visual {
    position: static;
    grid-column: 2;
    grid-row: 1;
    width: 90px;
    max-height: 90px;
    align-self: start;
  }

  .cooperative-trust {
    width: min(100% - 30px, 1220px);
    padding-top: 0;
    padding-bottom: 44px;
  }

  .cooperative-trust__intro {
    padding: 25px 20px;
  }

  .cooperative-trust__intro h2 {
    font-size: 1.82rem;
  }

  .cooperative-trust__facts {
    grid-template-columns: 1fr;
  }

  .cooperative-trust__facts div {
    min-height: 0;
    padding: 18px 20px;
  }

  .site-footer {
    min-height: 0;
    padding-top: 32px;
    padding-bottom: calc(24px + env(safe-area-inset-bottom));
  }
}

/* Public preview readiness: compact legal layer and corrected mobile rhythm. */
.house-showcase {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.house-model-card img {
  aspect-ratio: 16 / 10;
}

.calculator-legal-link,
.privacy-hint a,
.chat-notice a {
  color: var(--green-700);
  font-size: 0.78rem;
  line-height: 1.35;
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.calculator-legal-link {
  justify-self: start;
  margin-top: -7px;
}

.calculator-legal-link--light {
  color: #fff;
}

.privacy-hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.35;
}

.site-footer {
  min-height: 0;
  align-content: start;
  gap: 18px;
  padding-top: 42px;
  padding-bottom: 30px;
}

.footer-family {
  padding-bottom: 15px;
}

.footer-legal {
  width: min(940px, 100%);
  display: grid;
  justify-items: center;
  gap: 10px;
  margin-top: 4px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.footer-legal p,
.footer-legal small {
  max-width: 860px;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.76rem;
  line-height: 1.4;
}

.footer-legal nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
}

.footer-legal a {
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.privacy-content {
  padding-top: 52px;
  padding-bottom: 64px;
}

.legal-document {
  display: grid;
  gap: 24px;
  margin-top: 30px;
}

.legal-section {
  padding: 24px 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 38px rgba(15, 59, 46, 0.07);
}

.legal-section h2 {
  margin-bottom: 10px;
  color: var(--green-900);
  font-size: 1.35rem;
}

.legal-section p,
.legal-section li {
  color: var(--ink);
  font-size: 0.94rem;
  line-height: 1.5;
}

.legal-section ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 20px;
}

.legal-meta {
  display: grid;
  gap: 5px;
  padding: 18px 20px;
  border-left: 4px solid var(--green-700);
  background: var(--sage);
}

.legal-meta strong,
.legal-meta span {
  display: block;
}

@media (max-width: 1040px) {
  .house-showcase {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(250px, 33%);
    overflow-x: auto;
    padding: 3px 2px 15px;
    scroll-snap-type: x mandatory;
    scrollbar-color: #2f7d5d #e7f0ea;
  }

  .house-model-card {
    scroll-snap-align: start;
  }
}

@media (max-width: 720px) {
  .story-band::after {
    background: linear-gradient(180deg, rgba(5, 35, 25, 0.9) 0%, rgba(5, 35, 25, 0.72) 56%, rgba(5, 35, 25, 0.94) 100%);
  }

  .story-band__copy {
    align-content: start;
    padding-top: 34px;
  }

  .journey-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 88px;
    grid-template-rows: auto auto auto;
    align-items: start;
    gap: 8px 12px;
  }

  .journey-heading__copy {
    display: contents;
  }

  .journey-heading__copy .eyebrow {
    grid-column: 1;
    grid-row: 1;
    max-width: none;
    align-self: center;
  }

  .journey-heading__copy h2 {
    grid-column: 1 / -1;
    grid-row: 2;
    margin: 6px 0 4px;
  }

  .journey-heading__copy > p:last-child {
    grid-column: 1 / -1;
    grid-row: 3;
  }

  .journey-heading__visual {
    position: static;
    grid-column: 2;
    grid-row: 1;
    width: 86px;
    max-height: 86px;
    align-self: start;
  }

  .site-footer {
    min-height: 0;
    padding-top: 30px;
    padding-bottom: calc(24px + env(safe-area-inset-bottom));
  }

  .footer-legal {
    padding-top: 15px;
  }

  .footer-legal nav {
    display: grid;
    gap: 8px;
  }

  .footer-legal p,
  .footer-legal small {
    font-size: 0.71rem;
  }

  .privacy-content {
    width: min(100% - 30px, 880px);
    padding-top: 36px;
  }

  .legal-section {
    padding: 19px 18px;
  }
}

@media (max-width: 720px) {
  .direction-card {
    grid-template-rows: 118px auto auto;
    min-height: 254px;
  }
  .direction-card__brand {
    padding: 14px 104px 14px 15px;
  }
  .direction-card__lockup {
    width: 190px;
    max-height: 84px;
  }
  .direction-card__object {
    top: 11px;
    right: 7px;
    width: 94px;
    height: 94px;
  }
  .product-section {
    padding-top: 34px;
  }
  .product-heading--chapter {
    grid-template-columns: 1fr;
    align-content: end;
    gap: 14px;
    min-height: 370px;
    margin-bottom: 25px;
    padding: 24px;
  }
  .product-heading--chapter::before {
    background: linear-gradient(180deg, rgba(5, 38, 27, 0.42) 0%, rgba(5, 38, 27, 0.78) 38%, rgba(5, 38, 27, 0.97) 100%);
  }
  .product-heading--chapter::after {
    left: 24px;
    right: 24px;
    bottom: 18px;
  }
  .product-capital .product-heading--chapter {
    background-position: center 62%;
  }
  .product-stroy .product-heading--chapter {
    background-position: center 66%;
  }
  .product-zemlya .product-heading--chapter {
    background-position: center 66%;
  }
  .product-heading--chapter > img {
    width: 216px;
    max-height: 92px;
    padding: 12px 14px;
  }
  .product-heading--chapter .product-heading__copy {
    padding-bottom: 24px;
  }
  .product-heading--chapter h2 {
    padding-bottom: 13px;
    font-size: 2.08rem;
    line-height: 1;
    overflow-wrap: normal;
  }
  .product-heading--chapter p:not(.eyebrow) {
    font-size: 0.93rem;
  }
  .site-footer {
    min-height: 430px;
    padding-top: 48px;
    padding-bottom: 48px;
    background-position: center 72%;
  }
  .footer-family img {
    height: 48px;
  }
  .footer-contact h2 {
    font-size: 2rem;
  }
  .footer-note {
    font-size: 0.88rem;
  }
}

@media (max-width: 460px) {
  .direction-card {
    min-height: 246px;
  }
  .direction-card__brand {
    padding-right: 96px;
  }
  .direction-card__lockup {
    width: 176px;
  }
  .direction-card__object {
    right: 4px;
    width: 88px;
    height: 88px;
  }
  .product-heading--chapter {
    min-height: 348px;
    padding: 20px;
  }
  .product-heading--chapter::after {
    left: 20px;
    right: 20px;
  }
  .product-heading--chapter > img {
    width: 196px;
  }
  .product-heading--chapter h2 {
    font-size: 1.82rem;
  }
  .footer-family {
    gap: 4px;
  }
  .footer-family img {
    height: 40px;
  }
  .footer-contact h2 {
    font-size: 1.78rem;
  }
}

/* Direction editorial v2: image-led stories, connected journeys and calm motion. */
body::after {
  content: "";
  position: fixed;
  z-index: 120;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: #2f7d5d;
  transform: scaleX(var(--page-progress, 0));
  transform-origin: left center;
  pointer-events: none;
}

.story-section {
  padding-top: 46px;
  padding-bottom: 54px;
}

.story-band {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 1fr;
  min-height: 560px;
  overflow: hidden;
  border: 1px solid rgba(11, 73, 52, 0.16);
  border-radius: 8px;
  background: var(--green-950);
  box-shadow: 0 32px 82px rgba(8, 45, 32, 0.22);
}

.story-band::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(5, 35, 25, 0.97) 0%, rgba(7, 48, 34, 0.9) 43%, rgba(7, 45, 32, 0.5) 72%, rgba(5, 35, 25, 0.18) 100%);
}

.story-band__image {
  position: absolute;
  inset: 0;
  z-index: -2;
  min-height: 0;
  border-radius: 0;
  box-shadow: none;
}

.story-band__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.035);
  animation: storyDrift 16s ease-in-out infinite alternate;
}

.story-band--capital .story-band__image img {
  object-position: center 62%;
}

.story-band--stroy .story-band__image img {
  object-position: center 60%;
}

.story-band--land .story-band__image img {
  object-position: center 58%;
}

.story-band__copy {
  position: relative;
  z-index: 1;
  width: min(760px, 72%);
  min-height: 560px;
  align-content: center;
  padding: 56px;
  border-radius: 0;
  background: transparent;
}

.story-band__copy h2 {
  max-width: 720px;
  margin-bottom: 17px;
  font-size: 3.15rem;
  line-height: 0.99;
  text-shadow: 0 4px 24px rgba(2, 20, 13, 0.32);
}

.story-band__copy > p:not(.eyebrow) {
  max-width: 650px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.06rem;
  line-height: 1.48;
}

.story-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: 34px;
  padding-top: 21px;
  border-top: 1px solid rgba(255, 255, 255, 0.32);
}

.story-points span {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 9px;
  padding-right: 16px;
  color: #fff;
  font-size: 0.83rem;
  line-height: 1.25;
  font-weight: 800;
}

.story-points span::before {
  content: "";
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  background: #78c49b;
  box-shadow: 0 0 0 4px rgba(120, 196, 155, 0.16);
}

.story-points span + span {
  padding-left: 16px;
  border-left: 1px solid rgba(255, 255, 255, 0.22);
}

.journey-heading {
  position: relative;
  max-width: none;
  margin-bottom: 32px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  align-items: center;
  gap: 26px;
  min-height: 250px;
  padding: 30px 34px;
  overflow: hidden;
  border: 1px solid #c8ded0;
  border-radius: 8px;
  background:
    radial-gradient(circle at 89% 18%, rgba(92, 169, 127, 0.22), transparent 34%),
    linear-gradient(118deg, #f7fbf8 0%, #eaf5ed 62%, #dceee3 100%);
  box-shadow: 0 22px 60px rgba(7, 58, 39, 0.1);
}

.journey-heading::after {
  content: "";
  position: absolute;
  right: 14%;
  bottom: -105px;
  width: 330px;
  height: 220px;
  border: 1px solid rgba(37, 112, 76, 0.16);
  border-radius: 50%;
  transform: rotate(-10deg);
}

.journey-heading__copy {
  position: relative;
  z-index: 1;
  max-width: 820px;
}

.journey-heading__copy h2 {
  margin-bottom: 12px;
}

.journey-heading__visual {
  position: relative;
  z-index: 1;
  width: 230px;
  max-height: 220px;
  justify-self: end;
  object-fit: contain;
  filter: drop-shadow(0 18px 24px rgba(6, 52, 36, 0.2));
  animation: journeyStickerFloat 5.4s ease-in-out infinite;
}

.journey-heading__copy > p:last-child {
  max-width: 720px;
  margin: 0;
  font-size: 1.02rem;
}

.journey-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.journey-step {
  position: relative;
  min-width: 0;
  min-height: 174px;
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 17px 22px 17px 12px;
  overflow: hidden;
  border: 1px solid #cfe0d5;
  border-radius: 8px;
  background:
    linear-gradient(122deg, rgba(231, 245, 236, 0.7) 0 28%, rgba(255, 255, 255, 0.98) 28% 100%);
  box-shadow: 0 16px 42px rgba(8, 62, 43, 0.08);
  transition: transform 200ms cubic-bezier(.2,.8,.2,1), border-color 200ms ease, box-shadow 200ms ease;
}

.journey-step::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 3px;
  background: linear-gradient(90deg, #2d8059, #91c6a7);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 240ms ease;
}

.journey-step:hover {
  transform: translateY(-5px);
  border-color: #86b49b;
  box-shadow: 0 25px 58px rgba(8, 62, 43, 0.14);
}

.journey-step:hover::after {
  transform: scaleX(1);
}

.journey-step__sticker {
  width: 112px;
  height: 112px;
  object-fit: contain;
  filter: drop-shadow(0 12px 14px rgba(7, 58, 39, 0.15));
  transition: transform 220ms cubic-bezier(.2,.8,.2,1);
}

.journey-step:hover .journey-step__sticker {
  transform: translateY(-3px) scale(1.04);
}

.journey-step h3 {
  margin: 0 0 9px;
  color: var(--green-950);
  font-size: 1.25rem;
  line-height: 1.12;
}

.journey-step__number {
  display: inline;
  margin-right: 5px;
  color: #2c8259;
  font-weight: 950;
}

.journey-step p {
  color: #4f6058;
  font-size: 0.92rem;
  line-height: 1.4;
}

.journey-step:nth-child(2) { transition-delay: 60ms; }
.journey-step:nth-child(3) { transition-delay: 120ms; }
.journey-step:nth-child(4) { transition-delay: 180ms; }
.journey-step:nth-child(5) { transition-delay: 240ms; }
.journey-step:nth-child(6) { transition-delay: 300ms; }

.product-heading--chapter::before {
  animation: chapterShade 10s ease-in-out infinite alternate;
}

@keyframes storyDrift {
  from { transform: scale(1.035) translate3d(0, 0, 0); }
  to { transform: scale(1.085) translate3d(-0.8%, -0.5%, 0); }
}

@keyframes chapterShade {
  from { opacity: 0.93; }
  to { opacity: 1; }
}

@keyframes journeyStickerFloat {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(-1deg); }
  50% { transform: translate3d(0, -8px, 0) rotate(1deg); }
}

@media (max-width: 900px) {
  .story-band__copy {
    width: min(820px, 86%);
  }

  .journey-heading {
    grid-template-columns: minmax(0, 1fr) 190px;
  }

  .journey-heading__visual {
    width: 185px;
  }

  .journey-step {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .journey-step__sticker {
    width: 94px;
    height: 94px;
  }
}

@media (max-width: 720px) {
  .story-section {
    width: 100%;
    padding-top: 22px;
    padding-bottom: 34px;
  }

  .story-band {
    min-height: 540px;
    border-left: 0;
    border-right: 0;
    border-radius: 0;
  }

  .story-band::after {
    background: linear-gradient(180deg, rgba(5, 35, 25, 0.18) 0%, rgba(5, 35, 25, 0.6) 37%, rgba(5, 35, 25, 0.97) 100%);
  }

  .story-band__copy {
    width: 100%;
    min-height: 540px;
    align-content: end;
    padding: 30px 20px 32px;
  }

  .story-band__copy h2 {
    font-size: 2.28rem;
    line-height: 1;
  }

  .story-band__copy > p:not(.eyebrow) {
    font-size: 0.95rem;
  }

  .story-points {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 23px;
    padding-top: 17px;
  }

  .story-points span,
  .story-points span + span {
    min-height: 26px;
    padding: 0;
    border-left: 0;
  }

  .journey-heading {
    display: block;
    min-height: 0;
    margin-bottom: 24px;
    padding: 24px 18px;
  }

  .journey-heading__copy {
    position: relative;
    z-index: 2;
  }

  .journey-heading__copy .eyebrow {
    max-width: calc(100% - 120px);
  }

  .journey-heading__copy h2 {
    margin-top: 78px;
    font-size: 1.95rem;
  }

  .journey-heading__copy > p:last-child {
    font-size: 0.94rem;
  }

  .journey-heading__visual {
    position: absolute;
    top: 16px;
    right: 12px;
    width: 116px;
    max-height: 142px;
  }

  .journey-list {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .journey-step {
    min-height: 0;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 10px;
    padding: 14px 16px 14px 9px;
  }

  .journey-step__sticker {
    width: 90px;
    height: 90px;
  }
}

@media (max-width: 460px) {
  .story-band,
  .story-band__copy {
    min-height: 510px;
  }

  .story-band__copy h2 {
    font-size: 2rem;
  }

  .journey-step {
    grid-template-columns: 80px minmax(0, 1fr);
    gap: 8px;
    padding: 12px 13px 12px 7px;
  }

  .journey-step__sticker {
    width: 78px;
    height: 78px;
  }

  .journey-step h3 {
    font-size: 1.05rem;
  }

  .journey-step p {
    font-size: 0.84rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  body::after {
    transition: none;
  }

  .story-band__image img,
  .product-heading--chapter::before,
  .journey-heading__visual {
    animation: none !important;
  }

  .journey-step,
  .journey-step__sticker {
    transition: none;
  }
}

/* Keep the final mobile corrections last in the cascade. */
@media (max-width: 720px) {
  .story-band,
  .story-band__copy {
    min-height: 520px;
  }

  .story-band::after {
    background: linear-gradient(180deg, rgba(5, 35, 25, 0.9) 0%, rgba(5, 35, 25, 0.76) 54%, rgba(5, 35, 25, 0.94) 100%);
  }

  .story-band__copy {
    width: 100%;
    align-content: start;
    padding: 32px 20px;
  }

  .journey-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 92px;
    grid-template-rows: auto auto auto;
    align-items: start;
    gap: 8px 12px;
    padding: 20px 18px;
  }

  .journey-heading__copy {
    display: contents;
  }

  .journey-heading__copy .eyebrow {
    grid-column: 1;
    grid-row: 1;
    max-width: none;
    align-self: center;
  }

  .journey-heading__copy h2 {
    grid-column: 1 / -1;
    grid-row: 2;
    margin: 8px 0 3px;
  }

  .journey-heading__copy > p:last-child {
    grid-column: 1 / -1;
    grid-row: 3;
  }

  .journey-heading__visual {
    position: static;
    grid-column: 2;
    grid-row: 1;
    width: 90px;
    max-height: 90px;
    align-self: start;
  }

  .site-footer {
    min-height: 0;
    padding-top: 32px;
    padding-bottom: calc(24px + env(safe-area-inset-bottom));
  }
}

@media (max-width: 460px) {
  .story-band,
  .story-band__copy {
    min-height: 500px;
  }
}

/* Trust and transparency pass */
.hero-proof-link {
  width: min(560px, 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 24px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 8px;
  background: rgba(5, 29, 21, 0.58);
  color: #fff;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.hero-proof-link:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.62);
  background: rgba(5, 29, 21, 0.76);
}

.hero-proof-link span {
  display: grid;
  gap: 3px;
}

.hero-proof-link strong {
  font-size: 0.96rem;
  line-height: 1.2;
}

.hero-proof-link small {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
  line-height: 1.3;
}

.hero-proof-link svg {
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
}

.trust-overview {
  width: min(1220px, calc(100% - 48px));
  display: grid;
  grid-template-columns: minmax(0, 0.74fr) minmax(520px, 1.26fr);
  margin: 0 auto;
  overflow: hidden;
  border-radius: 8px;
  background: var(--green-900);
  color: #fff;
  box-shadow: var(--shadow-strong);
}

.trust-overview__intro {
  display: grid;
  align-content: center;
  padding: 34px;
}

.trust-overview__intro h2,
.trust-overview__intro p {
  color: #fff;
}

.trust-overview__intro h2 {
  font-size: 2.35rem;
}

.trust-overview__intro > p {
  color: rgba(255, 255, 255, 0.76);
}

.text-link-light,
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  color: #fff;
  font-size: 0.86rem;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.text-link {
  color: var(--green-900);
}

.text-link-light svg,
.text-link svg {
  width: 17px;
  height: 17px;
}

.trust-overview__facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  padding: 1px;
  background: rgba(255, 255, 255, 0.18);
}

.trust-overview__facts div {
  min-width: 0;
  padding: 24px;
  background: #fff;
}

.trust-overview__facts dt {
  margin-bottom: 8px;
  color: var(--green-700);
  font-size: 0.72rem;
  line-height: 1.2;
  font-weight: 900;
  text-transform: uppercase;
}

.trust-overview__facts dd {
  margin: 0;
  color: var(--green-950);
  font-family: Montserrat, Inter, system-ui, sans-serif;
  font-size: 0.98rem;
  line-height: 1.28;
  font-weight: 820;
}

.model-definition {
  display: grid;
  grid-template-columns: minmax(0, 0.84fr) minmax(520px, 1.16fr);
  gap: 0;
  padding-top: 58px;
  padding-bottom: 0;
  overflow: hidden;
  color: #fff;
}

.model-definition__title {
  display: grid;
  align-content: center;
  padding: 34px;
  border-radius: 8px 0 0 8px;
  background: var(--green-900);
}

.model-definition__title h2 {
  margin: 0;
  color: #fff;
  font-size: 2.25rem;
}

.model-definition__facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  padding: 1px;
  border: 1px solid var(--line);
  border-left: 0;
  border-radius: 0 8px 8px 0;
  background: var(--line);
}

.model-definition__facts p {
  display: grid;
  align-content: center;
  gap: 8px;
  min-width: 0;
  margin: 0;
  padding: 24px 20px;
  background: #fff;
}

.model-definition__facts strong,
.model-definition__facts span {
  display: block;
}

.model-definition__facts strong {
  color: var(--green-900);
  font-size: 0.94rem;
  line-height: 1.18;
}

.model-definition__facts span {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.38;
}

.cooperative-trust__actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  background: var(--green-950);
}

.cooperative-trust__actions .primary-button,
.cooperative-trust__actions .secondary-button {
  min-height: 42px;
}

.cooperative-trust__actions .text-link-light {
  margin: 0 0 0 auto;
}

.openness-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: url("assets/capital-consultation.png") center / cover no-repeat;
  color: #fff;
}

.openness-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(5, 29, 21, 0.9);
}

.openness-hero__inner {
  width: min(1220px, calc(100% - 48px));
  min-height: 500px;
  display: grid;
  align-content: center;
  margin: 0 auto;
  padding: 64px 0;
}

.openness-hero h1 {
  max-width: 850px;
}

.openness-hero p:not(.eyebrow) {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.08rem;
}

.openness-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.openness-section {
  width: min(1220px, calc(100% - 48px));
  margin: 0 auto;
  padding: 68px 0;
}

.openness-section + .openness-section {
  border-top: 1px solid var(--line);
}

.openness-section--dark,
.openness-section--sage {
  width: 100%;
  padding-right: max(24px, calc((100vw - 1220px) / 2));
  padding-left: max(24px, calc((100vw - 1220px) / 2));
  border-top: 0;
}

.openness-section--dark {
  background: var(--green-900);
  color: #fff;
}

.openness-section--sage {
  background: var(--sage);
}

.openness-heading {
  max-width: 900px;
  margin-bottom: 28px;
}

.openness-heading > p {
  max-width: 760px;
}

.openness-section--dark .openness-heading h2,
.openness-section--dark .openness-heading p {
  color: #fff;
}

.openness-section--dark .openness-heading > p {
  color: rgba(255, 255, 255, 0.75);
}

.role-table {
  display: grid;
  border-top: 1px solid var(--line);
}

.role-table article {
  display: grid;
  grid-template-columns: minmax(180px, 0.42fr) minmax(260px, 0.76fr) minmax(300px, 1fr);
  gap: 24px;
  align-items: center;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.role-table span {
  color: var(--green-700);
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.role-table strong {
  color: var(--green-950);
  font-size: 1rem;
  line-height: 1.3;
}

.role-table p {
  font-size: 0.9rem;
}

.requisite-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  padding: 1px;
  background: rgba(255, 255, 255, 0.2);
}

.requisite-grid div {
  min-width: 0;
  padding: 22px;
  background: rgba(255, 255, 255, 0.08);
}

.requisite-grid dt {
  margin-bottom: 8px;
  color: #bcd7ca;
  font-size: 0.71rem;
  font-weight: 900;
  text-transform: uppercase;
}

.requisite-grid dd {
  margin: 0;
  color: #fff;
  font-size: 0.94rem;
  line-height: 1.34;
  font-weight: 780;
  overflow-wrap: anywhere;
}

.document-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.document-links a {
  min-width: 0;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  transition: transform 170ms ease, background 170ms ease;
}

.document-links a:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.13);
}

.document-links svg {
  width: 28px;
  height: 28px;
  color: #d6eadf;
}

.document-links span {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.document-links strong,
.document-links small {
  display: block;
}

.document-links strong {
  color: #fff;
  font-size: 0.9rem;
  line-height: 1.22;
}

.document-links small {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.73rem;
  line-height: 1.3;
}

.model-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: model-step;
}

.model-steps li {
  counter-increment: model-step;
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(15, 59, 46, 0.07);
}

.model-steps li::before {
  content: counter(model-step) ".";
  display: inline;
  margin-right: 7px;
  color: var(--green-700);
  font-size: 1rem;
  font-weight: 900;
}

.model-steps strong {
  color: var(--green-950);
  font-size: 0.98rem;
  line-height: 1.25;
}

.model-steps span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.42;
}

.not-a-product {
  display: grid;
  grid-template-columns: minmax(220px, 0.52fr) minmax(0, 1.48fr);
  gap: 26px;
  align-items: start;
  margin-top: 18px;
  padding: 26px;
  border-left: 5px solid var(--green-700);
  background: var(--sage);
}

.not-a-product h3 {
  margin: 0;
  font-size: 1.5rem;
}

.not-a-product ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 26px;
  margin: 0;
  padding-left: 20px;
  color: var(--ink);
}

.not-a-product li {
  font-size: 0.9rem;
  line-height: 1.4;
}

.pyramid-check {
  display: grid;
  grid-template-columns: minmax(300px, 0.76fr) minmax(0, 1.24fr);
  gap: 30px;
  align-items: center;
  margin-top: 18px;
  padding: 28px;
  border-radius: 8px;
  background: var(--green-900);
  color: #fff;
}

.pyramid-check h3 {
  margin: 0;
  color: #fff;
  font-size: 1.65rem;
}

.pyramid-check > p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  line-height: 1.48;
}

.risk-matrix {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.risk-matrix article {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.risk-matrix strong {
  display: block;
  margin-bottom: 7px;
  color: var(--green-900);
}

.risk-matrix p {
  font-size: 0.88rem;
}

.checklist-band {
  display: grid;
  grid-template-columns: minmax(260px, 0.64fr) minmax(0, 1.36fr);
  gap: 28px;
  margin-top: 18px;
  padding: 28px;
  border-radius: 8px;
  background: var(--green-900);
  color: #fff;
}

.checklist-band h3 {
  margin: 0;
  color: #fff;
  font-size: 1.65rem;
}

.checklist-band ol {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 24px;
}

.checklist-band li {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.88rem;
  line-height: 1.4;
}

.openness-contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.5fr);
  gap: 36px;
  align-items: center;
}

.openness-contact h2 {
  margin-bottom: 12px;
}

.openness-contact p {
  max-width: 780px;
}

.openness-contact p a {
  color: var(--green-900);
  font-weight: 900;
}

.openness-contact__actions {
  display: grid;
  justify-items: start;
  gap: 4px;
}

@media (max-width: 1040px) {
  .trust-overview,
  .model-definition {
    grid-template-columns: 1fr;
  }

  .model-definition__title {
    border-radius: 8px 8px 0 0;
  }

  .model-definition__facts {
    border-left: 1px solid var(--line);
    border-radius: 0 0 8px 8px;
  }

  .role-table article {
    grid-template-columns: minmax(150px, 0.4fr) minmax(240px, 0.72fr) minmax(260px, 1fr);
    gap: 18px;
  }

  .model-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .hero-proof-link {
    margin-top: 18px;
    padding: 12px 13px;
  }

  .hero-proof-link small {
    font-size: 0.72rem;
  }

  .trust-overview {
    width: calc(100% - 28px);
    margin-top: 0;
  }

  .trust-overview__intro {
    padding: 24px 20px;
  }

  .trust-overview__intro h2 {
    font-size: 1.9rem;
  }

  .trust-overview__facts {
    grid-template-columns: 1fr;
  }

  .trust-overview__facts div {
    padding: 17px 20px;
  }

  .model-definition {
    width: calc(100% - 28px);
    padding-top: 34px;
  }

  .model-definition__title {
    padding: 24px 20px;
  }

  .model-definition__title h2 {
    font-size: 1.85rem;
  }

  .model-definition__facts {
    grid-template-columns: 1fr;
  }

  .model-definition__facts p {
    padding: 17px 20px;
  }

  .cooperative-trust__actions {
    display: grid;
    padding: 12px;
  }

  .cooperative-trust__actions .primary-button,
  .cooperative-trust__actions .secondary-button {
    width: 100%;
  }

  .cooperative-trust__actions .text-link-light {
    margin: 7px 3px 4px;
  }

  .openness-hero__inner,
  .openness-section {
    width: calc(100% - 36px);
  }

  .openness-hero__inner {
    min-height: 460px;
    padding: 48px 0;
  }

  .openness-hero h1 {
    font-size: 2.75rem;
  }

  .openness-hero p:not(.eyebrow) {
    font-size: 0.96rem;
  }

  .openness-hero__actions {
    display: grid;
  }

  .openness-section {
    padding: 46px 0;
  }

  .openness-section--dark,
  .openness-section--sage {
    width: 100%;
    padding-right: 18px;
    padding-left: 18px;
  }

  .openness-heading {
    margin-bottom: 22px;
  }

  .openness-heading h2 {
    font-size: 2rem;
  }

  .role-table article {
    grid-template-columns: 1fr;
    gap: 7px;
    padding: 18px 0;
  }

  .requisite-grid,
  .document-links,
  .model-steps,
  .risk-matrix,
  .not-a-product ul {
    grid-template-columns: 1fr;
  }

  .requisite-grid div {
    padding: 17px;
  }

  .document-links a {
    padding: 16px;
  }

  .model-steps {
    gap: 9px;
  }

  .model-steps li {
    padding: 18px;
  }

  .not-a-product,
  .pyramid-check,
  .checklist-band,
  .openness-contact {
    grid-template-columns: 1fr;
  }

  .not-a-product,
  .pyramid-check,
  .checklist-band {
    gap: 18px;
    padding: 22px 19px;
  }

  .openness-contact {
    gap: 20px;
  }
}

/* About / team section */
.about-team {
  width: min(1220px, calc(100% - 48px));
  margin: 0 auto;
  padding: 96px 0 108px;
  scroll-margin-top: 76px;
}

.about-team__heading {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.62fr);
  gap: 56px;
  align-items: end;
  margin-bottom: 38px;
}

.about-team__heading h2 {
  margin-bottom: 0;
}

.about-team__lead {
  max-width: 580px;
  padding-bottom: 3px;
  font-size: 1.08rem;
  line-height: 1.5;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.team-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 15px 38px rgba(15, 59, 46, 0.08);
}

.team-card__portrait {
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--green-900);
}

.team-card__portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-card__copy {
  min-height: 104px;
  padding: 20px 22px 22px;
}

.team-card__copy h3 {
  margin-bottom: 6px;
  color: var(--green-950);
  font-size: 1.34rem;
  line-height: 1.14;
}

.team-card__copy p {
  color: var(--green-700);
  font-size: 0.94rem;
  font-weight: 800;
  line-height: 1.3;
}

@media (max-width: 900px) {
  .about-team__heading {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .about-team__lead {
    max-width: 760px;
  }

  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .about-team {
    width: calc(100% - 36px);
    padding: 62px 0 72px;
  }

  .about-team__heading {
    margin-bottom: 26px;
  }

  .about-team__heading h2 {
    font-size: 2.28rem;
  }

  .about-team__lead {
    font-size: 0.98rem;
  }

  .team-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .team-card__copy {
    min-height: 0;
    padding: 18px 19px 20px;
  }

  .team-card__copy h3 {
    font-size: 1.28rem;
  }
}

/* House project booklet dialog */
.house-model-card {
  cursor: pointer;
}

.house-card-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  margin-top: 9px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  color: var(--green-700);
  font-size: 0.76rem;
  line-height: 1.2;
  font-style: normal;
  font-weight: 850;
}

.house-card-action svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
}

.house-project-open {
  overflow: hidden;
}

.house-project-dialog {
  width: min(1180px, calc(100% - 32px));
  max-width: none;
  max-height: none;
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 32px 100px rgba(2, 31, 22, 0.34);
}

.house-project-dialog::backdrop {
  background: rgba(2, 25, 18, 0.74);
  backdrop-filter: blur(6px);
}

.house-project-modal {
  height: min(92dvh, 900px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
}

.house-project-header {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
  padding: 21px 70px 19px 24px;
  border-bottom: 1px solid var(--line);
  background: #f5f9f6;
}

.house-project-header > div {
  min-width: 0;
}

.house-project-header .eyebrow {
  margin-bottom: 5px;
}

.house-project-header h2 {
  margin: 0;
  color: var(--green-950);
  font-size: clamp(1.65rem, 3vw, 2.4rem);
  line-height: 1.04;
  letter-spacing: 0;
}

.house-project-header > div > p:last-child {
  max-width: 860px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.38;
}

.house-project-close {
  position: absolute;
  top: 15px;
  right: 16px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--green-900);
}

.house-project-close:hover {
  background: var(--sage);
}

.house-project-close svg {
  width: 22px;
  height: 22px;
}

.house-project-dialog button:focus-visible,
.house-project-dialog a:focus-visible {
  outline: 3px solid rgba(47, 125, 93, 0.34);
  outline-offset: 2px;
}

.house-project-scroll {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 22px 24px 32px;
  scrollbar-color: var(--green-700) #e7f0ea;
}

.house-project-overview {
  display: grid;
  grid-template-columns: minmax(0, 1.38fr) minmax(310px, 0.82fr);
  gap: 26px;
  align-items: start;
}

.house-project-gallery {
  min-width: 0;
  margin: 0;
}

.house-project-image-stage {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  background: #dce8e1;
  touch-action: pan-y;
}

.house-project-image-stage > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.house-project-gallery-button {
  position: absolute;
  top: 50%;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  transform: translateY(-50%);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  background: rgba(5, 39, 29, 0.82);
  color: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.house-project-gallery-button:hover {
  background: var(--green-900);
}

.house-project-gallery-button--prev {
  left: 13px;
}

.house-project-gallery-button--next {
  right: 13px;
}

.house-project-gallery-button svg {
  width: 24px;
  height: 24px;
}

.house-project-image-count {
  position: absolute;
  right: 13px;
  bottom: 13px;
  min-width: 52px;
  padding: 7px 10px;
  border-radius: 6px;
  background: rgba(5, 39, 29, 0.82);
  color: #fff;
  text-align: center;
  font-size: 0.76rem;
  line-height: 1;
  font-weight: 850;
}

.house-project-gallery figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.3;
}

.house-project-thumbnails {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(100px, 1fr);
  gap: 9px;
  margin-top: 10px;
  overflow-x: auto;
  padding: 2px 2px 7px;
}

.house-project-thumbnails button {
  min-width: 0;
  padding: 0;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 2px solid transparent;
  border-radius: 6px;
  background: var(--sage);
  opacity: 0.68;
}

.house-project-thumbnails button:hover,
.house-project-thumbnails button.is-active {
  border-color: var(--green-700);
  opacity: 1;
}

.house-project-thumbnails img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.house-project-summary {
  display: grid;
  gap: 20px;
  min-width: 0;
}

.house-project-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.house-project-facts > div {
  min-height: 104px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 10px;
  align-content: center;
  padding: 15px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #f8faf8;
}

.house-project-facts svg {
  grid-row: 1 / 3;
  width: 22px;
  height: 22px;
  align-self: center;
  color: var(--green-700);
}

.house-project-facts span {
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.2;
  font-weight: 750;
}

.house-project-facts strong {
  margin-top: 3px;
  color: var(--green-950);
  font-size: 0.95rem;
  line-height: 1.15;
}

.house-project-audience,
.house-project-features {
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.house-project-audience .eyebrow,
.house-project-features .eyebrow {
  margin-bottom: 8px;
}

.house-project-audience > p:last-child {
  margin: 0;
  color: var(--ink);
  font-size: 0.94rem;
  line-height: 1.42;
}

.house-project-features ul {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.house-project-features li {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  color: var(--ink);
  font-size: 0.9rem;
  line-height: 1.32;
}

.house-project-features li svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  margin-top: 1px;
  padding: 3px;
  border-radius: 50%;
  background: #dff1e6;
  color: var(--green-700);
}

.house-project-plan {
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.house-project-plan-heading {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  align-items: end;
  margin-bottom: 16px;
}

.house-project-plan-heading h3 {
  margin: 2px 0 0;
  color: var(--green-950);
  font-size: 1.65rem;
  line-height: 1.08;
}

.house-project-plan-heading > a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  color: var(--green-700);
  font-size: 0.82rem;
  font-weight: 850;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.house-project-plan-heading > a svg {
  width: 17px;
  height: 17px;
}

.house-project-plan-frame {
  display: block;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.house-project-plan-frame img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 680px;
  object-fit: contain;
  object-position: top center;
}

.house-project-plan-frame--crop {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.house-project-plan-frame--crop img {
  max-height: none;
}

.house-project-plan-note {
  max-width: 900px;
  margin: 11px 0 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.4;
}

.house-project-actions {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  padding: 14px 18px;
  border-top: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 -12px 30px rgba(15, 59, 46, 0.08);
}

.house-project-actions > div {
  min-width: 0;
}

.house-project-actions > div strong,
.house-project-actions > div span {
  display: block;
}

.house-project-actions > div strong {
  color: var(--green-950);
  font-size: 0.93rem;
  line-height: 1.2;
}

.house-project-actions > div span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.25;
}

.house-project-actions .primary-button,
.house-project-actions .secondary-button {
  min-height: 46px;
  padding: 11px 16px;
  white-space: nowrap;
}

.house-project-actions .secondary-button {
  border-color: var(--green-700);
  background: #f5f9f6;
  color: var(--green-900);
}

.house-project-actions .secondary-button:hover {
  background: var(--sage);
}

.house-project-actions svg {
  width: 18px;
  height: 18px;
}

@media (max-width: 860px) {
  .house-project-dialog {
    width: calc(100% - 20px);
  }

  .house-project-modal {
    height: min(94dvh, 940px);
  }

  .house-project-overview {
    grid-template-columns: 1fr;
  }

  .house-project-summary {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 18px 24px;
  }

  .house-project-facts {
    grid-row: 1 / 3;
  }

  .house-project-actions {
    grid-template-columns: 1fr 1fr;
  }

  .house-project-actions > div {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  .house-project-dialog {
    width: calc(100% - 10px);
    border-radius: 7px;
  }

  .house-project-modal {
    height: calc(100dvh - 10px);
  }

  .house-project-header {
    padding: 15px 56px 14px 16px;
  }

  .house-project-header h2 {
    font-size: 1.45rem;
  }

  .house-project-header > div > p:last-child {
    margin-top: 6px;
    font-size: 0.82rem;
    line-height: 1.34;
  }

  .house-project-close {
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
  }

  .house-project-scroll {
    padding: 14px 14px 24px;
  }

  .house-project-overview {
    gap: 20px;
  }

  .house-project-image-stage {
    aspect-ratio: 16 / 10;
  }

  .house-project-gallery-button {
    width: 40px;
    height: 40px;
  }

  .house-project-thumbnails {
    grid-auto-columns: 31%;
  }

  .house-project-summary {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .house-project-facts {
    grid-row: auto;
  }

  .house-project-facts > div {
    min-height: 88px;
    padding: 12px;
  }

  .house-project-plan {
    margin-top: 24px;
    padding-top: 22px;
  }

  .house-project-plan-heading {
    align-items: start;
  }

  .house-project-plan-heading h3 {
    font-size: 1.35rem;
  }

  .house-project-plan-heading > a {
    max-width: 86px;
    justify-content: flex-end;
    text-align: right;
    white-space: normal;
  }

  .house-project-plan-frame,
  .house-project-plan-frame--crop {
    aspect-ratio: 4 / 3;
    overflow: auto;
  }

  .house-project-plan-frame img,
  .house-project-plan-frame--crop img {
    width: 720px;
    max-width: none;
    max-height: none;
  }

  .house-project-actions {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  }

  .house-project-actions > div {
    display: none;
  }

  .house-project-actions .primary-button,
  .house-project-actions .secondary-button {
    width: 100%;
    min-height: 44px;
    justify-content: center;
    padding: 9px 12px;
  }
}
