/* =========================================================
   Novodom — backyard ADU site
   Design system + layout
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  --bg:          #f7f7f0;
  --bg-raised:   #fdfdf7;
  --bg-warm:     #f9f8f1;
  --bg-sand:     #f5f2de;
  --ink:         #0b0b0a;
  --ink-80:      rgba(11, 11, 10, .8);
  --ink-60:      rgba(11, 11, 10, .58);
  --ink-40:      rgba(11, 11, 10, .38);
  --line:        #e0ded4;
  --line-soft:   rgba(11, 11, 10, .1);
  --blue:        #0096f7;
  --blue-deep:   #0077c8;
  --blue-tint:   #d1e8ff;
  --dark:        #14150f;
  --dark-2:      #1e2018;
  --lime:        #70ff59;

  --r-xs: 4px;
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 24px;
  --pill: 100px;

  --max:   1600px;
  --read:  768px;
  --gutter: clamp(16px, 3.4vw, 40px);
  --section-y: clamp(64px, 8vw, 140px);

  --nav-h: 62px;

  --f-sans: "Helvetica Neue", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;

  --t-display: clamp(30px, 5.2vw, 72px);
  --t-h1:      clamp(34px, 5vw, 66px);
  --t-h2:      clamp(26px, 3.4vw, 48px);
  --t-h3:      clamp(26px, 2.4vw, 36px);
  --t-h4:      clamp(21px, 1.7vw, 26px);
  --t-lead:    clamp(18px, 1.5vw, 22px);
  --t-body:    15px;
  --t-small:   14px;
  --t-micro:   12px;

  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: var(--t-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, h4, p, figure, blockquote { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: var(--r-xs); }

/* ---------- Utilities ---------- */
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--read { max-width: calc(var(--read) + var(--gutter) * 2); }
.wrap--mid  { max-width: calc(1024px + var(--gutter) * 2); }
.section { padding-block: var(--section-y); }
.eyebrow {
  font-size: var(--t-micro); letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-60);
}
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.display { font-size: var(--t-display); line-height: 1.02; letter-spacing: -.015em; font-weight: 600; }
.h1 { font-size: var(--t-h1); line-height: 1.02; letter-spacing: -.02em; font-weight: 600; }
.h2 { font-size: var(--t-h2); line-height: 1.06; letter-spacing: -.018em; font-weight: 600; }
.h3 { font-size: var(--t-h3); line-height: 1.08; letter-spacing: -.022em; font-weight: 500; }
.h4 { font-size: var(--t-h4); line-height: 1.15; letter-spacing: -.015em; font-weight: 500; }
.lead { font-size: var(--t-lead); line-height: 1.4; letter-spacing: -.01em; color: var(--ink-80); }
.muted { color: var(--ink-60); }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--ink); --btn-fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding-inline: 24px;
  background: var(--btn-bg); color: var(--btn-fg);
  border-radius: var(--pill);
  font-size: var(--t-small); font-weight: 500; letter-spacing: -.01em;
  white-space: nowrap;
  transition: transform .25s var(--ease), background-color .2s ease, opacity .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--blue  { --btn-bg: var(--blue); }
.btn--blue:hover { --btn-bg: var(--blue-deep); }
.btn--light { --btn-bg: #fff; --btn-fg: var(--ink); }
.btn--outline {
  --btn-bg: transparent; --btn-fg: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line-soft);
}
.btn--outline:hover { --btn-bg: rgba(11,11,10,.04); }
.btn--onDark { --btn-bg: #fff; --btn-fg: var(--ink); }
.btn--sm { height: 38px; padding-inline: 18px; font-size: 13px; }
.btn--lg { height: 54px; padding-inline: 30px; font-size: 16px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: var(--t-small); font-weight: 500;
  color: var(--blue);
}
.link-arrow .arw { transition: transform .3s var(--ease); }
.link-arrow:hover .arw { transform: translateX(4px); }

/* ---------- Header ---------- */
.hdr {
  position: sticky; top: 0; z-index: 60;
  background: rgba(247, 247, 240, .82);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, background-color .25s ease;
}
.hdr.is-stuck { border-bottom-color: var(--line); }
.hdr__bar {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  height: var(--nav-h);
}
.brand { display: inline-flex; align-items: center; gap: 9px; justify-self: start; }
.brand__mark { width: 22px; height: 22px; }
.brand__word { font-size: 17px; font-weight: 500; letter-spacing: -.045em; }

.nav-main { display: flex; gap: 4px; justify-self: center; }
.nav-main a {
  position: relative; padding: 8px 14px; border-radius: var(--pill);
  font-size: var(--t-small); color: var(--ink-80);
  transition: background-color .2s ease, color .2s ease;
}
.nav-main a:hover { background: rgba(11,11,10,.05); color: var(--ink); }
.nav-main a.is-active { color: var(--ink); font-weight: 500; }

.hdr__actions { display: flex; align-items: center; gap: 10px; justify-self: end; }

.burger {
  display: none; width: 40px; height: 40px; border-radius: 50%;
  align-items: center; justify-content: center;
}
.burger span {
  display: block; width: 18px; height: 1.5px; background: var(--ink); border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s ease;
}
.burger span + span { margin-top: 5px; }
body.menu-open .burger span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
body.menu-open .burger span:nth-child(2) { opacity: 0; }
body.menu-open .burger span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.hdr__phone { font-size: var(--t-small); font-weight: 500; white-space: nowrap; }

/* mobile drawer */
.drawer {
  position: fixed; inset: 0; z-index: 55;
  background: var(--bg);
  padding: calc(var(--nav-h) + 24px) var(--gutter) 32px;
  transform: translateY(-8px); opacity: 0; pointer-events: none;
  transition: opacity .3s ease, transform .35s var(--ease);
  overflow-y: auto;
}
body.menu-open .drawer { opacity: 1; transform: none; pointer-events: auto; }
body.menu-open { overflow: hidden; }
.drawer__group + .drawer__group { border-top: 1px solid var(--line); margin-top: 20px; padding-top: 20px; }
.drawer__label { font-size: var(--t-micro); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-40); margin-bottom: 12px; }
.drawer a.drawer__item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 0; font-size: 26px; letter-spacing: -.03em; font-weight: 500;
}
.drawer__cta { display: grid; gap: 10px; margin-top: 28px; }
.drawer__cta .btn { width: 100%; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: min(88svh, 860px);
  display: flex; align-items: flex-end;
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.24) 0%, rgba(0,0,0,0) 34%, rgba(0,0,0,.45) 100%);
}
.hero__inner { position: relative; width: 100%; padding-block: clamp(36px, 6vw, 72px); }
.hero__badge {
  display: inline-flex; align-items: center; gap: 8px;
  height: 28px; padding-inline: 12px; margin-bottom: 18px;
  background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.34);
  backdrop-filter: blur(8px);
  border-radius: var(--pill); color: #fff;
  font-size: var(--t-micro); letter-spacing: .1em; text-transform: uppercase;
}
.hero h1 { color: #fff; max-width: 14ch; text-shadow: 0 2px 30px rgba(0,0,0,.22); }
.hero__sub { color: rgba(255,255,255,.94); margin-top: 18px; max-width: 46ch; font-size: var(--t-lead); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero__scroll {
  position: absolute; right: var(--gutter); bottom: clamp(36px, 6vw, 72px);
  display: flex; align-items: center; gap: 10px;
  color: rgba(255,255,255,.8); font-size: var(--t-micro);
  letter-spacing: .12em; text-transform: uppercase;
}
.hero__scroll .dot {
  width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.5);
  display: grid; place-items: center;
  animation: bob 2.4s var(--ease) infinite;
}
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(5px); } }

/* ---------- Statement ---------- */
.statement { text-align: center; }
.statement p { font-size: clamp(26px, 3.4vw, 48px); line-height: 1.1; letter-spacing: -.03em; font-weight: 500; }
.statement p .dim { color: var(--ink-40); }
.statement__foot { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ---------- Models carousel ---------- */
.models { background: var(--bg-warm); border-block: 1px solid var(--line); }
.models__head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
  margin-bottom: 32px;
}
.carousel { position: relative; }
.carousel__track {
  display: grid; grid-auto-flow: column;
  grid-auto-columns: min(72%, 560px);
  gap: 18px;
  overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; padding-bottom: 6px;
  scroll-padding-inline: var(--gutter);
}
.carousel__track::-webkit-scrollbar { display: none; }

.model {
  scroll-snap-align: start;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: border-color .25s ease, transform .35s var(--ease);
}
.model:hover { border-color: rgba(11,11,10,.24); }
.model__figure {
  position: relative; aspect-ratio: 16 / 10;
  background: linear-gradient(180deg, #dde7ea 0%, #eeeadc 100%);
  display: grid; place-items: center; padding: 8% 6% 0;
}
.model__figure svg { width: 100%; height: auto; }
.model__tag {
  position: absolute; top: 14px; left: 14px;
  height: 24px; padding-inline: 10px; border-radius: var(--pill);
  background: var(--ink); color: #fff;
  font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  display: inline-flex; align-items: center;
}
.model__body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.model__name { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.model__price { font-size: var(--t-small); color: var(--ink-60); white-space: nowrap; }
.model__specs {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.model__specs li {
  font-size: var(--t-micro); color: var(--ink-80);
  background: rgba(11,11,10,.05); border-radius: var(--pill);
  padding: 5px 11px;
}
.model__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; }

.swatches { display: flex; align-items: center; gap: 8px; }
.swatch {
  width: 22px; height: 22px; border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(11,11,10,.18);
  transition: transform .2s var(--ease), box-shadow .2s ease;
}
.swatch:hover { transform: scale(1.12); }
.swatch.is-on { box-shadow: inset 0 0 0 1px rgba(11,11,10,.2), 0 0 0 2px var(--bg-raised), 0 0 0 3.5px var(--ink); }

.carousel__nav { display: flex; gap: 8px; }
.cbtn {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--bg-raised); box-shadow: inset 0 0 0 1px var(--line);
  display: grid; place-items: center;
  transition: background-color .2s ease, opacity .2s ease;
}
.cbtn:hover { background: #fff; }
.cbtn[disabled] { opacity: .3; cursor: default; }
.carousel__dots { display: none; gap: 6px; justify-content: center; margin-top: 18px; }
.carousel__dots button { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-40); }
.carousel__dots button.is-on { background: var(--ink); width: 20px; border-radius: var(--pill); }

/* ---------- Press ---------- */
.press { border-bottom: 1px solid var(--line); }
.press__inner { display: flex; align-items: center; justify-content: center; gap: clamp(28px, 6vw, 76px); flex-wrap: wrap; padding-block: 34px; }
.press__label { font-size: var(--t-micro); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-40); }
.press__logo { font-size: clamp(15px, 1.6vw, 20px); letter-spacing: -.02em; color: var(--ink-60); font-weight: 500; }
.press__logo.serif { font-family: "Times New Roman", Georgia, serif; letter-spacing: 0; }
.press__logo.wide { letter-spacing: .3em; text-transform: uppercase; font-size: clamp(11px, 1.1vw, 13px); }

/* ---------- Tour ---------- */
.tour { background: var(--dark); color: #fff; }
.tour .muted { color: rgba(255,255,255,.6); }
.tour__head { text-align: center; max-width: 30ch; margin-inline: auto; }
.tour__stage {
  position: relative; margin-top: 44px;
  border-radius: var(--r-xl); overflow: hidden;
  background: radial-gradient(120% 90% at 50% 20%, #2a2d24 0%, #14150f 70%);
  aspect-ratio: 16 / 9; display: grid; place-items: center;
  cursor: grab; touch-action: pan-y;
}
.tour__stage:active { cursor: grabbing; }
.tour__stage svg { width: min(74%, 900px); height: auto; transition: transform .12s linear; }
.tour__hint {
  position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 8px;
  height: 32px; padding-inline: 14px; border-radius: var(--pill);
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2);
  font-size: var(--t-micro); letter-spacing: .06em; color: rgba(255,255,255,.9);
  backdrop-filter: blur(8px);
  transition: opacity .3s ease;
}
.tour__stage.is-touched .tour__hint { opacity: 0; }
.tour__foot { display: flex; justify-content: center; margin-top: 34px; }

/* ---------- Steps ---------- */
.steps__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
  margin-top: 46px;
}
.step { background: var(--bg); padding: clamp(22px, 2.4vw, 34px); min-height: 260px; display: flex; flex-direction: column; gap: 12px; }
.step__num { font-size: var(--t-micro); letter-spacing: .16em; color: var(--ink-40); }
.step p { color: var(--ink-60); }
.step__rule { margin-top: auto; height: 3px; background: var(--line); border-radius: 2px; overflow: hidden; }
.step__rule i { display: block; height: 100%; width: 0; background: var(--blue); transition: width 1.1s var(--ease); }
.step.is-in .step__rule i { width: 100%; }

/* ---------- Feature bento ---------- */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; margin-top: 48px; }
.tile {
  position: relative; overflow: hidden;
  border-radius: var(--r-xl); background: var(--bg-raised);
  border: 1px solid var(--line);
  display: flex; flex-direction: column;
}
.tile__media { position: relative; overflow: hidden; }
.tile__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.tile:hover .tile__media img { transform: scale(1.035); }
.tile__body { padding: clamp(20px, 2vw, 30px); display: flex; flex-direction: column; gap: 10px; }
.tile__body p { color: var(--ink-60); }
.tile--a { grid-column: span 7; }
.tile--b { grid-column: span 5; }
.tile--c { grid-column: span 5; }
.tile--d { grid-column: span 7; }
.tile--a .tile__media { aspect-ratio: 16 / 10; }
.tile--b .tile__media, .tile--c .tile__media { aspect-ratio: 4 / 3; }
.tile--d .tile__media { aspect-ratio: 16 / 10; }

.specs-strip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
  margin-top: 18px;
}
.spec {
  background: var(--bg-raised); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 22px;
}
.spec__k { font-size: clamp(28px, 3vw, 42px); letter-spacing: -.03em; font-weight: 500; line-height: 1; }
.spec__v { margin-top: 8px; color: var(--ink-60); font-size: var(--t-small); }

/* ---------- Uses ---------- */
.uses { background: var(--bg-sand); }
.uses__rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(64%, 320px);
  gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; margin-top: 40px;
}
.uses__rail::-webkit-scrollbar { display: none; }
.use {
  position: relative; scroll-snap-align: start;
  aspect-ratio: 4 / 5; border-radius: var(--r-lg); overflow: hidden;
  display: flex; align-items: flex-end;
}
.use img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.use::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 42%, rgba(0,0,0,.62) 100%);
}
.use:hover img { transform: scale(1.05); }
.use__label {
  position: relative; z-index: 1; padding: 22px; color: #fff;
}
.use__label small { display: block; font-size: var(--t-micro); letter-spacing: .12em; text-transform: uppercase; opacity: .72; margin-bottom: 6px; }

/* ---------- Testimonials ---------- */
.quotes { border-block: 1px solid var(--line); background: var(--bg-warm); }
.revs {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 42px;
  align-items: start;
}
.rev {
  background: var(--bg-raised); border: 1px solid var(--line);
  border-radius: var(--r-xl); padding: clamp(22px, 2.2vw, 32px);
  display: flex; flex-direction: column; gap: 16px;
}
.rev blockquote { font-size: var(--t-body); line-height: 1.58; color: var(--ink-80); }
.rev figcaption { display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 4px; }
.rev figcaption b { font-weight: 500; }
.avatar {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--ink); color: #fff; font-size: var(--t-small); font-weight: 500;
  letter-spacing: .02em;
}
.quote__meta { text-align: left; }
.quote__meta b { display: block; font-weight: 500; font-size: var(--t-small); }
.quote__meta span { font-size: var(--t-micro); color: var(--ink-60); }
.quotes__dots { display: flex; gap: 8px; justify-content: center; margin-top: 30px; }
.quotes__dots button { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-40); transition: all .25s ease; }
.quotes__dots button.is-on { background: var(--ink); width: 22px; border-radius: var(--pill); }
.stars { display: flex; gap: 3px; color: var(--ink); }

/* ---------- Stories ---------- */
.stories__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 42px; }
.story {
  position: relative; border-radius: var(--r-xl); overflow: hidden;
  aspect-ratio: 3 / 2; display: flex; align-items: flex-end; color: #fff;
}
.story img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.story::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.6) 100%); }
.story:hover img { transform: scale(1.04); }
.story__body { position: relative; z-index: 1; padding: clamp(20px, 2.4vw, 34px); }
.story__body small { font-size: var(--t-micro); letter-spacing: .12em; text-transform: uppercase; opacity: .78; }
.story__body h3 { margin-top: 8px; }

/* ---------- Sustainability ---------- */
.green { background: var(--dark-2); color: #fff; }
.green .muted { color: rgba(255,255,255,.58); }
.green__head { max-width: 20ch; }
.green__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 70px); align-items: start; margin-top: 52px; }
.metrics { display: grid; gap: 1px; background: rgba(255,255,255,.14); border-radius: var(--r-lg); overflow: hidden; }
.metric { background: var(--dark-2); padding: 24px; display: flex; align-items: baseline; gap: 16px; }
.metric b { font-size: clamp(34px, 4vw, 56px); font-weight: 500; letter-spacing: -.035em; line-height: 1; color: var(--lime); }
.metric span { color: rgba(255,255,255,.7); font-size: var(--t-small); }
.build { display: grid; gap: 0; }
.build li {
  display: grid; grid-template-columns: 26px 1fr; gap: 14px; align-items: start;
  padding: 18px 0; border-top: 1px solid rgba(255,255,255,.14);
}
.build li:last-child { border-bottom: 1px solid rgba(255,255,255,.14); }
.build .ic { width: 26px; height: 26px; opacity: .9; }
.build b { display: block; font-weight: 500; }
.build p { color: rgba(255,255,255,.62); margin-top: 4px; }
.green__foot { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.footnote { font-size: var(--t-micro); color: rgba(255,255,255,.42); margin-top: 22px; max-width: 60ch; }

/* ---------- Final CTA ---------- */
.final { text-align: center; }
.final__price { margin-top: 18px; color: var(--ink-60); }
.final__cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 30px; }

/* ---------- Doorways ---------- */
.doorways { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.door {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  aspect-ratio: 3 / 4; display: flex; align-items: flex-end; color: #fff;
}
.door img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.door::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.05) 30%, rgba(0,0,0,.66) 100%); }
.door:hover img { transform: scale(1.05); }
.door__body { position: relative; z-index: 1; padding: 22px; display: grid; gap: 10px; }
.door__body h3 { font-size: var(--t-h4); letter-spacing: -.02em; font-weight: 500; }
.door .link-arrow { color: #fff; }

/* ---------- Footer ---------- */
.ftr { background: var(--bg-raised); border-top: 1px solid var(--line); padding-block: clamp(48px, 6vw, 84px) 28px; }
.ftr__top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: clamp(24px, 3vw, 56px); }
.ftr__brand { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.ftr__slogan { font-size: var(--t-small); color: var(--ink-60); letter-spacing: .05em; max-width: 28ch; }
.ftr__phones { display: flex; flex-direction: column; gap: 6px; }
.ftr__phones a { font-size: var(--t-h4); font-weight: 500; letter-spacing: -.02em; }
.ftr__social a { font-size: var(--t-small); }
.ftr__label { font-size: var(--t-micro); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-40); margin-bottom: 16px; }
.ftr__nav li + li { margin-top: 10px; }
.ftr__nav a { font-size: var(--t-small); color: var(--ink-80); }
.ftr__nav a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

.signup { max-width: 380px; }
.signup h3 { font-size: var(--t-h4); letter-spacing: -.02em; font-weight: 500; }
.signup p { color: var(--ink-60); margin-top: 8px; }
.field {
  display: flex; gap: 8px; margin-top: 18px;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--pill);
  padding: 5px 5px 5px 18px;
  transition: border-color .2s ease;
}
.field:focus-within { border-color: var(--ink); }
.field input {
  flex: 1; min-width: 0; border: 0; background: none; font: inherit; font-size: var(--t-small);
  color: var(--ink);
}
.field input::placeholder { color: var(--ink-40); }
.field input:focus { outline: none; }
.field .btn { height: 38px; padding-inline: 20px; }
.form-note { font-size: var(--t-micro); color: var(--ink-60); margin-top: 10px; min-height: 16px; }
.form-note.is-ok { color: var(--blue-deep); }
.form-note.is-err { color: #c0392b; }

.ftr__bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 14px; margin-top: clamp(40px, 5vw, 70px); padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: var(--t-micro); color: var(--ink-60);
}
.ftr__legal { display: flex; flex-wrap: wrap; gap: 18px; }
.ftr__legal a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 20px);
  z-index: 90; background: var(--ink); color: #fff;
  padding: 12px 20px; border-radius: var(--pill); font-size: var(--t-small);
  opacity: 0; pointer-events: none; transition: opacity .3s ease, transform .4s var(--ease);
  max-width: calc(100vw - 32px); text-align: center;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1024px) {
  .nav-main { display: none; }
  .burger { display: flex; }
  .hdr__bar { grid-template-columns: 1fr auto; }
  .hdr__actions .btn--outline { display: none; }
  .steps__grid { grid-template-columns: repeat(2, 1fr); }
  .bento { gap: 14px; }
  .tile--a, .tile--b, .tile--c, .tile--d { grid-column: span 6; }
  .specs-strip { grid-template-columns: repeat(2, 1fr); }
  .green__grid { grid-template-columns: 1fr; }
  .doorways { grid-template-columns: repeat(2, 1fr); }
  .ftr__top { grid-template-columns: 1fr 1fr; }
  .signup { grid-column: 1 / -1; max-width: none; }
}

@media (max-width: 768px) {
  :root { --section-y: clamp(52px, 12vw, 84px); }
  .carousel__track { grid-auto-columns: 84%; }
  .carousel__nav { display: none; }
  .carousel__dots { display: flex; }
  .models__head { flex-direction: column; align-items: flex-start; gap: 14px; }
  .tile--a, .tile--b, .tile--c, .tile--d { grid-column: 1 / -1; }
  .steps__grid { grid-template-columns: 1fr; }
  .step { min-height: 0; }
  .stories__grid { grid-template-columns: 1fr; }
  .doorways { grid-template-columns: 1fr; }
  .door { aspect-ratio: 16 / 10; }
  .hero { min-height: 82svh; }
  .hero__scroll { display: none; }
  .quotes__stage { min-height: 300px; }
  .press__inner { gap: 24px 32px; }
  .ftr__bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 450px) {
  .btn { height: 44px; padding-inline: 20px; }
  .field { flex-wrap: wrap; border-radius: var(--r-lg); padding: 12px; }
  .field input { width: 100%; padding-bottom: 8px; }
  .field .btn { width: 100%; }
  .specs-strip { grid-template-columns: 1fr; }
}

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

/* =========================================================
   Блоки под контент Новадом
   ========================================================= */

/* --- Ротатор заголовков на первом экране --- */
.hero__rotator { position: relative; display: grid; }
.hero__rotator h1 {
  grid-area: 1 / 1;
  opacity: 0; transform: translateY(12px); pointer-events: none;
  transition: opacity .6s ease, transform .7s var(--ease);
}
.hero__rotator h1.is-on { opacity: 1; transform: none; pointer-events: auto; }
.hero__dots { display: flex; gap: 7px; margin-top: 26px; }
.hero__dots button {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(255,255,255,.45); transition: all .25s ease;
}
.hero__dots button.is-on { background: #fff; width: 24px; border-radius: var(--pill); }

/* --- Низ карусели проектов --- */
.models__foot { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 34px; }

/* --- Две колонки: характеристики / описание --- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 72px); align-items: start; }

.specs-rows { margin-top: 26px; }
.specs-rows > div {
  display: grid; grid-template-columns: 170px 1fr; gap: 18px;
  padding: 15px 0; border-top: 1px solid var(--line);
}
.specs-rows > div:last-child { border-bottom: 1px solid var(--line); }
.specs-rows dt { color: var(--ink-60); font-size: var(--t-small); }
.specs-rows dd { margin: 0; font-size: var(--t-small); }

.areas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 26px; }
.area {
  background: var(--bg-raised); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 18px;
}
.area b { display: block; font-size: clamp(22px, 2.2vw, 30px); font-weight: 600; letter-spacing: -.02em; line-height: 1; }
.area sup { font-size: .55em; vertical-align: super; }
.area span { display: block; margin-top: 8px; font-size: var(--t-micro); color: var(--ink-60); }

.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }

.prose { margin-top: 22px; display: grid; gap: 14px; }
.prose p { color: var(--ink-80); line-height: 1.62; }

/* --- Свободная планировка --- */
.statement p { font-size: clamp(19px, 2.1vw, 30px); line-height: 1.3; letter-spacing: -.018em; font-weight: 500; max-width: 30ch; margin-inline: auto; }

.plans { margin-top: 44px; }
.tabs { display: inline-flex; gap: 4px; padding: 4px; background: var(--bg-warm); border: 1px solid var(--line); border-radius: var(--pill); }
.tab {
  height: 38px; padding-inline: 22px; border-radius: var(--pill);
  font-size: var(--t-small); color: var(--ink-60);
  transition: background-color .2s ease, color .2s ease;
}
.tab.is-on { background: var(--ink); color: #fff; }
.plans__stage {
  margin-top: 18px; border: 1px solid var(--line); border-radius: var(--r-xl);
  background: var(--bg-raised); overflow: hidden;
}
.plans__stage img { width: 100%; height: auto; }
.planirovki__foot {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
  margin-top: 34px; flex-wrap: wrap;
}
.planirovki__foot .lead { max-width: 62ch; }

/* --- Конфигуратор --- */
.conf { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(24px, 3vw, 56px); margin-top: 46px; align-items: start; }
.conf__list { display: grid; }
.conf__list li { border-top: 1px solid rgba(255,255,255,.14); }
.conf__list li:last-child { border-bottom: 1px solid rgba(255,255,255,.14); }
.conf__list label {
  display: grid; grid-template-columns: 22px 1fr; gap: 16px; align-items: start;
  padding: 18px 0; cursor: pointer; color: rgba(255,255,255,.82);
  transition: color .2s ease;
}
.conf__list label:hover { color: #fff; }
.conf__list input { position: absolute; opacity: 0; width: 0; height: 0; }
.conf__list .box {
  width: 22px; height: 22px; border-radius: var(--r-sm);
  border: 1.5px solid rgba(255,255,255,.4); margin-top: 1px;
  display: grid; place-items: center;
  transition: background-color .2s ease, border-color .2s ease;
}
.conf__list .box::after {
  content: ""; width: 10px; height: 6px; margin-top: -2px;
  border-left: 2px solid var(--dark); border-bottom: 2px solid var(--dark);
  transform: rotate(-45deg) scale(0); transition: transform .2s var(--ease);
}
.conf__list input:checked + .box { background: var(--lime); border-color: var(--lime); }
.conf__list input:checked + .box::after { transform: rotate(-45deg) scale(1); }
.conf__list input:focus-visible + .box { outline: 2px solid var(--blue); outline-offset: 2px; }

.conf__side {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--r-lg); padding: 26px;
  display: grid; gap: 16px; position: sticky; top: calc(var(--nav-h) + 16px);
}
.conf__total { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.conf__total span { color: rgba(255,255,255,.6); font-size: var(--t-small); }
.conf__total b { font-size: clamp(24px, 2.6vw, 34px); font-weight: 600; letter-spacing: -.02em; }
.conf__note { font-size: var(--t-micro); color: rgba(255,255,255,.55); line-height: 1.5; }

/* --- Строим быстро --- */
.steps__grid { grid-template-columns: repeat(3, 1fr); }
.step__num { font-size: clamp(24px, 2.6vw, 34px); letter-spacing: -.02em; color: var(--ink); font-weight: 600; }
.step h3 { color: var(--ink-60); font-weight: 400; font-size: var(--t-body); }
.steps__note { margin-top: 26px; font-size: var(--t-lead); font-weight: 500; letter-spacing: -.01em; }

/* --- Карточки преимуществ --- */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 44px; }
.card {
  background: var(--bg-raised); border: 1px solid var(--line);
  border-radius: var(--r-xl); padding: clamp(22px, 2.2vw, 30px);
  display: flex; flex-direction: column; gap: 12px;
}
.card p { color: var(--ink-60); line-height: 1.58; }
.card .link-arrow { margin-top: auto; padding-top: 6px; }

/* --- Новости --- */
.news__head { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.news__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 42px; }
.post {
  background: var(--bg-raised); border: 1px solid var(--line);
  border-radius: var(--r-xl); overflow: hidden;
  display: flex; flex-direction: column;
  transition: border-color .25s ease;
}
.post:hover { border-color: rgba(11,11,10,.24); }
.post__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; }
.post__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.post:hover .post__media img { transform: scale(1.04); }
.post__body { padding: 22px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.post__body p { color: var(--ink-60); line-height: 1.58; }
.post__foot {
  margin-top: auto; padding-top: 8px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.post__foot time { font-size: var(--t-micro); color: var(--ink-40); white-space: nowrap; }

.final__price a { font-weight: 500; }
.final__price a:hover { text-decoration: underline; text-underline-offset: 3px; }

.drawer__phone { display: block; font-size: 22px; font-weight: 500; letter-spacing: -.02em; padding: 8px 0; }

/* --- Адаптив для новых блоков --- */
@media (max-width: 1024px) {
  .split { grid-template-columns: 1fr; }
  .conf { grid-template-columns: 1fr; }
  .conf__side { position: static; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .revs { grid-template-columns: 1fr; }
  .news__grid { grid-template-columns: 1fr; }
  .hdr__phone { display: none; }
}

@media (max-width: 768px) {
  .specs-rows > div { grid-template-columns: 1fr; gap: 4px; }
  .areas { grid-template-columns: 1fr; }
  .steps__grid { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .news__head { flex-direction: column; align-items: flex-start; }
  .planirovki__foot { flex-direction: column; align-items: flex-start; }
  .ftr__top { grid-template-columns: 1fr 1fr; }
  .ftr__brand { grid-column: 1 / -1; }
}
