:root {
  --ink: #121619;
  --muted: #66706d;
  --paper: #f6f5f0;
  --white: #ffffff;
  --line: rgba(23, 27, 31, 0.13);
  --olive: #476b64;
  --graphite: #181d1f;
  --clay: #c65e42;
  --gold: #d7b35f;
  --steel: #4f7f96;
  --chalk: #eeebe2;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow: 0 30px 90px rgba(23, 27, 31, 0.22);
  --before-image: url("assets/renovation-before.png");
  --after-image: url("assets/renovation-hero.png");
}

body[data-theme="studio"] {
  --ink: #191817;
  --muted: #716b63;
  --paper: #fbfaf6;
  --graphite: #35322e;
  --clay: #8d6e57;
  --gold: #a88343;
  --line: rgba(25, 24, 23, 0.12);
}

body[data-theme="mono"] {
  --ink: #111315;
  --muted: #656d74;
  --paper: #eef0f0;
  --graphite: #111315;
  --clay: #4d6772;
  --gold: #9ab2aa;
  --line: rgba(17, 19, 21, 0.14);
}

* {
  box-sizing: border-box;
}

* {
  min-width: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(18,22,25,.045) 1px, transparent 1px),
    linear-gradient(rgba(18,22,25,.035) 1px, transparent 1px),
    var(--paper);
  background-size: 56px 56px;
  font-family: Arial, Helvetica, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.topbar {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto minmax(160px, 1fr);
  align-items: center;
  gap: 22px;
  padding: 16px clamp(16px, 4vw, 54px);
  color: var(--white);
  background: linear-gradient(180deg, rgba(10, 12, 12, 0.9), rgba(10, 12, 12, 0.44) 76%, rgba(10, 12, 12, 0));
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: max-content;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(208, 168, 94, 0.62);
  border-radius: 12px;
  background: rgba(208, 168, 94, 0.18);
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
}

.nav {
  display: flex;
  gap: 24px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 14px;
}

.topbar-call {
  justify-self: end;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.12);
}

.hero {
  position: relative;
  min-height: 820px;
  overflow: hidden;
  color: var(--white);
  background: var(--graphite);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 92px clamp(16px, 5vw, 72px) 42px;
  z-index: 1;
  border: 1px solid rgba(255,255,255,.14);
  border-left: 0;
  border-right: 0;
  pointer-events: none;
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
  filter: saturate(.9) contrast(1.05);
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(12, 14, 14, 0.97) 0%, rgba(12, 14, 14, 0.76) 45%, rgba(12, 14, 14, 0.2) 100%),
    linear-gradient(0deg, rgba(12, 14, 14, 0.78), transparent 48%),
    linear-gradient(135deg, rgba(79,127,150,.3), transparent 38%);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(320px, 430px);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  min-height: 820px;
  padding: 138px clamp(16px, 5vw, 72px) 78px;
}

.hero-copy {
  position: relative;
  max-width: 760px;
}

.hero-copy::before {
  content: "";
  display: block;
  width: 112px;
  height: 6px;
  margin-bottom: 28px;
  background: linear-gradient(90deg, var(--clay), var(--gold));
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: manual;
}

h1 {
  max-width: 720px;
  margin-bottom: 20px;
  font-size: clamp(42px, 4.8vw, 62px);
  line-height: 1.08;
  letter-spacing: 0;
  text-wrap: balance;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(32px, 4.5vw, 56px);
  line-height: 1.08;
  letter-spacing: 0;
  text-wrap: normal;
  overflow-wrap: break-word;
}

h3 {
  margin-bottom: 8px;
  font-size: 22px;
}

.hero-copy p:not(.eyebrow) {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 20px;
  line-height: 1.5;
}

.hero-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 720px;
  margin-top: 34px;
}

.hero-proof span {
  min-height: 86px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  color: rgba(255, 255, 255, 0.74);
}

.hero-proof b {
  display: block;
  margin-bottom: 5px;
  color: var(--gold);
  font-size: 24px;
}

.hero-actions,
.editor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 800;
}

.button.primary {
  color: #151719;
  background: var(--gold);
}

.button.ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.08);
}

.button.ghost.dark {
  color: var(--ink);
  border-color: var(--line);
  background: transparent;
}

.button.full {
  width: 100%;
}

.calculator {
  padding: 26px;
  color: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 8px 32px 8px 32px;
  background:
    linear-gradient(90deg, rgba(18,22,25,.04) 1px, transparent 1px),
    linear-gradient(rgba(18,22,25,.035) 1px, transparent 1px),
    rgba(255, 255, 255, 0.95);
  background-size: 28px 28px;
  box-shadow: 0 34px 90px rgba(12, 14, 14, 0.38);
  backdrop-filter: blur(18px);
}

.calc-kicker {
  margin-bottom: 10px;
  color: var(--clay);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.calc-head,
.calc-result {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.calc-head {
  display: grid;
  align-items: start;
  gap: 8px;
  margin-bottom: 26px;
}

.calc-head span {
  color: var(--muted);
  font-weight: 800;
}

.calc-head strong {
  color: var(--graphite);
  font-size: clamp(28px, 2.6vw, 32px);
  line-height: 1.05;
  white-space: nowrap;
}

.calculator label,
.editor label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

input[type="range"] {
  width: 100%;
  accent-color: var(--clay);
}

.range-value {
  color: var(--ink);
  font-size: 18px;
}

fieldset {
  min-width: 0;
  margin: 22px 0;
  padding: 0;
  border: 0;
}

legend {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.segments {
  display: grid;
  gap: 8px;
}

.compact-segments {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
}

.compact-segments label {
  gap: 8px;
  padding-inline: 9px;
  font-size: 13px;
}

.segments label {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 10px 12px;
  color: var(--ink);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: #f2eee5;
  font-size: 14px;
  line-height: 1.25;
}

.segments label:has(input:checked) {
  border-color: rgba(182, 91, 63, 0.28);
  background: #fff7eb;
}

.calculator select {
  min-height: 48px;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink);
  background: var(--white);
}

.calc-result {
  margin-bottom: 18px;
  padding: 14px;
  border-radius: var(--radius-md);
  background: #ede6dc;
}

.calc-includes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.calc-includes span {
  padding: 8px 10px;
  border-radius: 999px;
  color: var(--muted);
  background: #f5f0e8;
  font-size: 12px;
  font-weight: 800;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line);
  background: #fbfaf5;
  color: var(--ink);
}

.trust-strip article {
  padding: 24px clamp(16px, 3vw, 44px);
  border-right: 1px solid var(--line);
}

.trust-strip strong {
  display: block;
  margin-bottom: 6px;
  color: var(--gold);
  font-size: 26px;
}

.trust-strip span {
  color: var(--muted);
}

.object-lab {
  background:
    linear-gradient(90deg, rgba(23,27,31,.045) 1px, transparent 1px) 0 0 / 46px 46px,
    linear-gradient(rgba(23,27,31,.045) 1px, transparent 1px) 0 0 / 46px 46px,
    #f3f1e8;
}

.object-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

.object-grid article {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 290px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 6px 30px 6px 30px;
  background: var(--white);
  overflow: hidden;
  box-shadow: none;
}

.object-grid article::after {
  content: "";
  display: none;
  position: absolute;
  right: -42px;
  bottom: -42px;
  width: 150px;
  height: 150px;
  border: 1px solid rgba(18,22,25,.12);
  transform: rotate(45deg);
}

.object-grid article > * {
  position: relative;
  z-index: 1;
}

.object-grid article:nth-child(1),
.object-grid article:nth-child(2) {
  grid-column: span 3;
  min-height: 360px;
}

.object-grid article:nth-child(3) {
  grid-column: span 2;
  min-height: 315px;
  background: #202829;
  color: var(--white);
}

.object-grid article:nth-child(4) {
  grid-column: span 4;
  min-height: 315px;
  margin-top: 34px;
  background:
    linear-gradient(135deg, rgba(215,179,95,.22), transparent 48%),
    var(--white);
}

.object-grid article:nth-child(3) p {
  color: rgba(255,255,255,.68);
}

.object-grid span {
  color: var(--clay);
  font-weight: 900;
}

.object-grid h3 {
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.12;
}

.object-grid p {
  margin-bottom: 0;
  font-size: 16px;
}

.deal-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(280px, 390px);
  gap: clamp(18px, 4vw, 42px);
  align-items: center;
  padding: 36px clamp(16px, 5vw, 72px);
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(198, 94, 66, 0.96), rgba(46, 76, 76, 0.96)),
    var(--clay);
}

.deal-copy h2 {
  max-width: 760px;
  margin-bottom: 8px;
  font-size: clamp(30px, 3.4vw, 44px);
}

.deal-copy p:not(.eyebrow) {
  max-width: 660px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.76);
}

.deal-timer {
  display: grid;
  grid-template-columns: repeat(3, 74px);
  gap: 8px;
}

.deal-timer span {
  display: grid;
  place-items: center;
  min-height: 82px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.deal-timer b {
  display: block;
  color: var(--white);
  font-size: 30px;
}

.deal-form {
  display: grid;
  gap: 10px;
}

.deal-form input {
  min-height: 48px;
  padding: 12px 13px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-sm);
  color: var(--ink);
  background: var(--white);
}

.section {
  padding: clamp(64px, 9vw, 118px) clamp(16px, 5vw, 72px);
}

.section p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.control-room {
  display: grid;
  grid-template-columns: minmax(0, .78fr) minmax(420px, 1.22fr);
  gap: clamp(28px, 6vw, 88px);
  align-items: start;
  background:
    linear-gradient(90deg, rgba(255,255,255,.88), rgba(255,255,255,.38)),
    #e9ece8;
}

.control-panel {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(280px, 360px);
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px 36px 8px 36px;
  background: rgba(255, 255, 255, .72);
  box-shadow: 0 24px 70px rgba(23, 27, 31, .12);
}

.apartment-map {
  position: relative;
  min-height: 520px;
  border: 1px solid rgba(23, 27, 31, .12);
  border-radius: 6px 28px 6px 28px;
  background:
    linear-gradient(90deg, rgba(23, 27, 31, .08) 1px, transparent 1px) 0 0 / 42px 42px,
    linear-gradient(rgba(23, 27, 31, .08) 1px, transparent 1px) 0 0 / 42px 42px,
    #f9f8f2;
  overflow: hidden;
}

.apartment-map::before {
  content: "";
  position: absolute;
  inset: 28px;
  border: 3px solid var(--graphite);
  border-radius: 22px;
  pointer-events: none;
}

.room-zone {
  position: absolute;
  display: grid;
  place-items: center;
  border: 2px solid rgba(23, 27, 31, .2);
  border-radius: 4px 18px 4px 18px;
  color: var(--ink);
  background: rgba(255, 255, 255, .86);
  cursor: pointer;
  font-weight: 900;
  box-shadow: 0 14px 38px rgba(23, 27, 31, .1);
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}

.room-zone span {
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .7);
}

.room-zone.active {
  border-color: var(--clay);
  background: rgba(208, 168, 94, .32);
  transform: translateY(-4px);
}

.zone-living { left: 8%; top: 10%; width: 50%; height: 44%; }
.zone-kitchen { right: 8%; top: 10%; width: 30%; height: 32%; }
.zone-bath { right: 8%; bottom: 10%; width: 30%; height: 34%; }
.zone-hall { left: 8%; bottom: 10%; width: 50%; height: 30%; }

.room-dashboard {
  display: grid;
  align-content: start;
  gap: 18px;
  padding: 24px;
  border-radius: 6px 28px 6px 28px;
  color: var(--white);
  background:
    radial-gradient(circle at 80% 12%, rgba(208, 168, 94, .32), transparent 24%),
    linear-gradient(135deg, #172022, #385e5a);
}

.room-dashboard > span {
  color: var(--gold);
  font-weight: 900;
  text-transform: uppercase;
}

.room-dashboard h3 {
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.08;
}

.room-dashboard p {
  color: rgba(255, 255, 255, .72);
}

.room-numbers {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.room-numbers article,
.room-risk {
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 18px;
  background: rgba(255, 255, 255, .07);
}

.room-numbers small,
.room-risk small {
  display: block;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, .58);
  font-weight: 900;
}

.room-numbers b {
  color: var(--gold);
  font-size: 22px;
  white-space: nowrap;
}

.room-risk p {
  margin-bottom: 0;
  font-size: 15px;
}

.estimate-board {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(360px, 1.28fr);
  gap: clamp(28px, 6vw, 88px);
  align-items: start;
  background:
    linear-gradient(135deg, rgba(215,179,95,.18), transparent 42%),
    #fbfaf5;
  color: var(--ink);
}

.estimate-board p {
  color: var(--muted);
}

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

.estimate-grid article {
  min-height: 238px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 6px 24px 6px 24px;
  background: var(--white);
  box-shadow: none;
}

.estimate-grid span {
  color: var(--gold);
  font-weight: 900;
}

.estimate-grid h3 {
  margin-top: 18px;
  color: var(--ink);
  font-size: 26px;
}

.estimate-grid b {
  display: block;
  margin: 14px 0;
  color: var(--gold);
  font-size: 24px;
}

.estimate-grid p {
  margin-bottom: 0;
  font-size: 16px;
}

.two-col,
.compare,
.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(320px, 1.18fr);
  gap: clamp(28px, 6vw, 88px);
  align-items: start;
}

.reasons {
  background: #eee8dc;
}

.reason-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.reason-grid article {
  min-height: 310px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 6px 26px 6px 26px;
  background: var(--white);
}

.reason-grid article:nth-child(even) {
  color: var(--white);
  background: var(--graphite);
}

.reason-grid article:nth-child(even) p {
  color: rgba(255,255,255,.68);
}

.reason-grid b {
  display: block;
  margin-bottom: 42px;
  color: var(--clay);
  font-size: 42px;
}

.reason-grid h3 {
  font-size: 24px;
  line-height: 1.08;
}

.reason-grid p {
  margin-bottom: 0;
  font-size: 16px;
}

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

.timeline article,
.price-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 6px 24px 6px 24px;
  background: rgba(255, 255, 255, 0.58);
}

.foreman-log {
  display: grid;
  grid-template-columns: minmax(0, .7fr) minmax(360px, 1.3fr);
  gap: clamp(28px, 6vw, 88px);
  align-items: start;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(135deg, #15191a, #274d4a);
  background-size: 38px 38px, 38px 38px, auto;
}

.foreman-log p {
  color: rgba(255, 255, 255, .7);
}

.log-board {
  display: grid;
  gap: 12px;
}

.log-board article {
  display: grid;
  grid-template-columns: minmax(140px, .32fr) minmax(0, .8fr) minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 4px 22px 4px 22px;
  background: rgba(255, 255, 255, .08);
}

.log-board span {
  color: var(--gold);
  font-weight: 900;
  text-transform: uppercase;
}

.log-board h3 {
  margin: 0;
  font-size: 24px;
}

.log-board p {
  margin: 0;
  font-size: 15px;
}

.timeline span {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--clay);
  font-weight: 900;
}

.before-after {
  position: relative;
  min-height: 440px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px 30px 6px 30px;
  background: #d8d0c4;
}

.before-layer,
.after-layer {
  position: absolute;
  inset: 0;
}

.before-layer {
  background:
    linear-gradient(135deg, rgba(69, 64, 58, 0.76), rgba(32, 33, 31, 0.82)),
    repeating-linear-gradient(90deg, #b8b0a6 0 18px, #968e84 18px 21px);
}

.after-layer {
  width: 52%;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.85), rgba(220, 230, 217, 0.72)),
    linear-gradient(90deg, #e8e0d2, #f9f8f3 45%, #8f9a82 45% 57%, #d6b47a 57%);
  box-shadow: 5px 0 0 var(--clay);
}

.before-after input {
  position: absolute;
  left: 5%;
  right: 5%;
  bottom: 22px;
  width: 90%;
}

.compare-badge {
  position: absolute;
  top: 18px;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(23, 27, 31, 0.76);
  font-weight: 800;
}

.compare-badge.before {
  right: 18px;
}

.compare-badge.after {
  left: 18px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}

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

.price-card span,
.project-grid span {
  color: var(--clay);
  font-weight: 900;
}

.price-card h3 {
  margin: 16px 0 12px;
  font-size: 28px;
}

.price-card.featured {
  background: linear-gradient(135deg, var(--graphite), #385e5a);
  color: var(--white);
}

.price-card.featured p {
  color: rgba(255, 255, 255, 0.7);
}

.projects {
  background:
    linear-gradient(180deg, #ece7dd, #f6f3ed);
}

.project-grid article {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px 28px 6px 28px;
  background: var(--white);
  box-shadow: none;
}

.project-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 1.35;
  object-fit: cover;
}

.project-grid article > *:not(img) {
  margin-left: 22px;
  margin-right: 22px;
}

.project-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: baseline;
  margin-top: 22px;
}

.project-grid .project-meta span {
  color: var(--clay);
  font-weight: 900;
}

.project-grid .project-meta b {
  color: var(--graphite);
  font-size: 30px;
}

.project-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.project-stats small {
  padding: 8px 10px;
  border-radius: 999px;
  color: var(--graphite);
  background: #f0ede6;
  font-size: 12px;
  font-weight: 900;
}

.project-grid p {
  margin-top: 16px;
  margin-bottom: 24px;
  font-size: 16px;
}

.company-proof {
  display: grid;
  grid-template-columns: minmax(0, .72fr) minmax(360px, 1.28fr);
  gap: clamp(28px, 6vw, 88px);
  align-items: center;
  color: var(--ink);
  background:
    radial-gradient(circle at 88% 18%, rgba(182, 91, 63, .14), transparent 24%),
    #fffaf1;
}

.company-proof p {
  color: var(--muted);
}

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

.proof-grid article {
  min-height: 150px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 6px 24px 6px 24px;
  background: var(--white);
  box-shadow: 0 18px 48px rgba(23, 27, 31, .08);
}

.proof-grid b {
  display: block;
  margin-bottom: 12px;
  color: var(--gold);
  font-size: 42px;
  line-height: 1;
}

.proof-grid span {
  color: var(--muted);
}

.reviews {
  background: var(--paper);
}

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

.review-grid article {
  display: grid;
  align-content: space-between;
  min-height: 250px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 6px 24px 6px 24px;
  background: var(--white);
  box-shadow: 0 18px 55px rgba(23, 27, 31, 0.08);
}

.review-grid p {
  color: var(--ink);
  font-size: 19px;
}

.review-grid b {
  color: var(--clay);
}

.seo-faq {
  background: #fffaf1;
}

.seo-faq .faq-list {
  max-width: 980px;
}

.seo-faq .faq-list details {
  border-radius: var(--radius-md);
  box-shadow: 0 14px 38px rgba(23, 27, 31, .06);
}

.contact {
  color: var(--ink);
  background:
    linear-gradient(135deg, #f8f6ee, #e5ebe7);
}

.contact p {
  color: var(--muted);
}

.contact h2 {
  font-size: clamp(30px, 3.6vw, 48px);
}

.lead-form {
  display: grid;
  gap: 12px;
  padding: 24px;
  border-radius: 6px 28px 6px 28px;
  background: var(--white);
  box-shadow: 0 24px 70px rgba(23, 27, 31, .12);
}

.lead-form input,
.lead-form select,
.editor input,
.editor textarea,
.admin-card select {
  width: 100%;
  min-height: 48px;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink);
  background: var(--white);
}

.editor textarea {
  min-height: 92px;
  resize: vertical;
}

.consent {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 9px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.consent a {
  color: var(--clay);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.consent input {
  width: auto;
  min-height: 0;
}

.compact-consent {
  color: rgba(255, 255, 255, .76);
  font-size: 12px;
}

.compact-consent a {
  color: var(--gold);
}

.editor {
  position: fixed;
  z-index: 30;
  right: 18px;
  bottom: 18px;
  display: grid;
  gap: 10px;
  justify-items: end;
}

.editor[hidden] {
  display: none !important;
}

.editor-toggle,
.admin-link {
  min-height: 46px;
  padding: 12px 16px;
  border: 0;
  border-radius: var(--radius-sm);
  color: var(--white);
  box-shadow: var(--shadow);
  cursor: pointer;
  font-weight: 900;
}

.editor-toggle {
  background: var(--clay);
}

.admin-link {
  background: var(--graphite);
}

.editor-panel {
  display: none;
  width: min(420px, calc(100vw - 36px));
  max-height: calc(100vh - 110px);
  margin-top: 10px;
  overflow: auto;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow);
}

.editor.open .editor-panel {
  display: grid;
  gap: 13px;
}

.editor h2 {
  margin-bottom: 4px;
  font-size: 22px;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  padding: 26px clamp(16px, 5vw, 72px);
  color: var(--muted);
  background: #fffaf1;
  border-top: 1px solid var(--line);
}

.legal-page {
  background:
    linear-gradient(90deg, rgba(23,27,31,.04) 1px, transparent 1px) 0 0 / 46px 46px,
    linear-gradient(rgba(23,27,31,.04) 1px, transparent 1px) 0 0 / 46px 46px,
    var(--paper);
}

.admin-page {
  background:
    linear-gradient(90deg, rgba(23,27,31,.04) 1px, transparent 1px) 0 0 / 46px 46px,
    linear-gradient(rgba(23,27,31,.04) 1px, transparent 1px) 0 0 / 46px 46px,
    #f4f1ea;
}

.admin-shell {
  padding: clamp(24px, 5vw, 60px);
}

.admin-hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  margin-bottom: 34px;
}

.admin-hero h1 {
  color: var(--ink);
}

.admin-hero p:not(.eyebrow) {
  max-width: 720px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.56;
}

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

.admin-notice {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.admin-notice article {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 6px 24px 6px 24px;
  background: rgba(255, 255, 255, .72);
  box-shadow: 0 14px 36px rgba(23, 27, 31, .06);
}

.admin-notice span {
  display: block;
  margin-bottom: 8px;
  color: var(--clay);
  font-weight: 900;
}

.admin-notice p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.admin-card {
  display: grid;
  gap: 14px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 6px 28px 6px 28px;
  background: var(--white);
  box-shadow: 0 18px 48px rgba(23, 27, 31, .07);
}

.admin-card.wide {
  grid-column: 1 / -1;
}

.admin-card h2 {
  margin-bottom: 2px;
  font-size: 26px;
}

.admin-card label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.admin-card input,
.admin-card textarea,
.admin-card select {
  width: 100%;
  max-width: 100%;
  min-height: 46px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  background: #fbfaf6;
}

.admin-card input[type="file"] {
  min-width: 0;
  padding: 10px;
  background: #ffffff;
}

.admin-card textarea {
  min-height: 96px;
  resize: vertical;
}

.repeater {
  display: grid;
  gap: 12px;
}

.repeater.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-mini {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 6px 20px 6px 20px;
  background: #f4f1ea;
}

.admin-check {
  display: flex !important;
  grid-template-columns: none !important;
  align-items: center;
}

.admin-check input {
  width: auto;
  min-height: 0;
}

.admin-actions {
  position: sticky;
  bottom: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
  padding: 16px 0 0;
  background: #f4f1ea;
}

.admin-status {
  flex-basis: 100%;
  min-height: 22px;
  margin: 0;
  color: var(--olive);
  font-weight: 900;
}

.legal {
  max-width: 920px;
  margin: 0 auto;
  padding: clamp(34px, 7vw, 82px) clamp(16px, 5vw, 40px);
}

.legal h1 {
  margin-top: 28px;
  color: var(--ink);
  font-size: clamp(38px, 5.4vw, 64px);
  line-height: 1.05;
}

.legal h2 {
  margin-top: 34px;
  font-size: clamp(24px, 3vw, 30px);
  line-height: 1.16;
}

.legal p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.62;
}

.legal code {
  padding: 2px 7px;
  border-radius: 8px;
  color: var(--ink);
  background: rgba(215, 179, 95, .22);
  font-family: inherit;
  font-weight: 800;
}

.legal-lead {
  max-width: 820px;
  margin-bottom: 30px;
  color: var(--ink) !important;
  font-size: clamp(19px, 2vw, 23px) !important;
  line-height: 1.5 !important;
}

.legal-note {
  margin: 30px 0 36px;
  padding: clamp(20px, 4vw, 30px);
  border: 1px solid var(--line);
  border-radius: 8px 28px 8px 28px;
  background: var(--white);
  box-shadow: 0 18px 48px rgba(23, 27, 31, .08);
}

.legal-note h2 {
  margin-top: 0;
}

.legal-note ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}

.muted-note {
  background:
    linear-gradient(135deg, rgba(215, 179, 95, .2), transparent 52%),
    #fffaf1;
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.guide-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 34px 0;
}

.guide-steps article {
  padding: 22px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.62);
}

.guide-steps span {
  color: var(--clay);
  font-weight: 900;
}

.guide-steps h2 {
  margin-top: 18px;
  font-size: 26px;
}

@media (max-width: 960px) {
  .topbar {
    grid-template-columns: 1fr auto;
  }

  .nav {
    display: none;
  }

  .hero,
  .hero-content {
    min-height: auto;
  }

  .hero-content {
    grid-template-columns: 1fr;
    padding-top: 112px;
    padding-bottom: 54px;
  }

  .trust-strip,
  .deal-band,
  .cards,
  .object-grid,
  .project-grid,
  .control-room,
  .control-panel,
  .estimate-board,
  .estimate-grid,
  .foreman-log,
  .reason-grid,
  .company-proof,
  .proof-grid,
  .review-grid,
  .guide-steps,
  .two-col,
  .compare,
  .contact,
  .admin-grid,
  .admin-notice,
  .admin-hero,
  .repeater.three {
    grid-template-columns: 1fr;
  }

  .hero-proof {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .deal-timer {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .admin-card.wide {
    grid-column: auto;
  }

  .admin-hero h1 {
    font-size: clamp(32px, 8vw, 48px);
    line-height: 1.08;
  }

  .calculator {
    max-width: 560px;
  }

  .object-grid article:nth-child(1),
  .object-grid article:nth-child(2),
  .object-grid article:nth-child(3),
  .object-grid article:nth-child(4) {
    grid-column: auto;
    margin-top: 0;
    min-height: auto;
  }

  .object-grid article::after {
    display: none;
  }

  .log-board article {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .topbar {
    padding: 12px 14px;
  }

  .topbar-call {
    display: none;
  }

  h1 {
    font-size: 38px;
    line-height: 1.08;
  }

  h2 {
    font-size: 32px;
    line-height: 1.12;
  }

  .legal h1 {
    font-size: 30px;
    line-height: 1.1;
  }

  .hero-content {
    padding: 92px 14px 38px;
  }

  .hero-copy p:not(.eyebrow) {
    font-size: 17px;
  }

  .hero-actions {
    display: grid;
  }

  .hero-proof {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 22px;
  }

  .hero-proof span {
    min-height: auto;
    padding: 12px 14px;
  }

  .calculator,
  .lead-form,
  .control-panel {
    padding: 18px;
  }

  .trust-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .estimate-grid {
    grid-template-columns: 1fr;
  }

  .compact-segments {
    grid-template-columns: 1fr;
  }

  .apartment-map {
    min-height: 360px;
    border-radius: 22px;
  }

  .apartment-map::before {
    inset: 18px;
  }

  .room-zone {
    border-radius: 16px;
    font-size: 13px;
  }

  .room-zone span {
    padding: 7px 9px;
  }

  .proof-grid {
    grid-template-columns: 1fr;
  }

  .room-numbers {
    grid-template-columns: 1fr;
  }

  .timeline {
    grid-template-columns: 1fr;
  }

  .section-head,
  .calc-head,
  .calc-result {
    align-items: stretch;
    flex-direction: column;
  }

  .before-after {
    min-height: 320px;
  }

  .deal-band {
    padding: 30px 14px;
  }

  .deal-form {
    width: 100%;
  }

  .review-grid article,
  .reason-grid article {
    min-height: auto;
  }
}

.admin-link.buy {
  background: var(--olive);
}

.admin-link.leads {
  background: #4d6772;
}

.admin-link.services {
  background: #6f5f52;
}

.form-status {
  min-height: 22px;
  margin: 0;
  color: var(--gold) !important;
  font-size: 14px !important;
}

.lead-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.leads-list {
  display: grid;
  gap: 12px;
}

.lead-card,
.empty-state {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px;
  border: 1px solid var(--line);
  background: var(--white);
}

.lead-card span {
  color: var(--clay);
  font-weight: 900;
}

.lead-card h2,
.empty-state h2 {
  margin: 8px 0;
  font-size: 28px;
}

.lead-card p,
.empty-state p {
  margin: 0;
  color: var(--muted);
}

.before-layer {
  background-image: linear-gradient(135deg, rgba(69, 64, 58, 0.22), rgba(32, 33, 31, 0.36)), var(--before-image);
  background-size: cover;
  background-position: center;
}

.after-layer {
  background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(220, 230, 217, 0.18)), var(--after-image);
  background-size: cover;
  background-position: center;
}

.project-grid img {
  width: 100%;
  aspect-ratio: 16 / 10;
  margin-bottom: 18px;
  object-fit: cover;
}

.sales-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 460px);
  gap: clamp(28px, 6vw, 80px);
  align-items: center;
  min-height: 720px;
  padding: 112px clamp(16px, 5vw, 72px) 72px;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(17, 19, 21, 0.92), rgba(17, 19, 21, 0.58)),
    url("assets/renovation-hero.png") center / cover;
}

.sales-hero h1 {
  color: var(--white);
}

.sales-hero p {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 20px;
  line-height: 1.55;
}

.sales-panel {
  padding: 24px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.sales-panel ul {
  margin: 18px 0 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.8;
}

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

.sales-tier {
  padding: 24px;
  border: 1px solid var(--line);
  background: var(--white);
}

.sales-tier.featured {
  color: var(--white);
  background: var(--graphite);
}

.sales-tier strong {
  display: block;
  margin: 18px 0;
  font-size: 34px;
}

.sales-tier p {
  color: var(--muted);
}

.sales-tier.featured p {
  color: rgba(255, 255, 255, 0.72);
}

.sales-band {
  background: #ece7dd;
}

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

.sales-feature-grid article {
  padding: 24px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.66);
}

.sales-feature-grid span {
  color: var(--clay);
  font-weight: 900;
}

.editable-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.editable-list span {
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: var(--white);
  font-weight: 800;
}

.compare-table {
  display: grid;
  border: 1px solid var(--line);
  background: var(--white);
}

.compare-row {
  display: grid;
  grid-template-columns: minmax(180px, 1.4fr) repeat(3, minmax(90px, 1fr));
  border-bottom: 1px solid var(--line);
}

.compare-row:last-child {
  border-bottom: 0;
}

.compare-row span,
.compare-row b {
  padding: 16px;
  border-right: 1px solid var(--line);
}

.compare-row b:last-child {
  border-right: 0;
}

.compare-row.head {
  color: var(--white);
  background: var(--graphite);
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-list details {
  padding: 18px 20px;
  border: 1px solid var(--line);
  background: var(--white);
}

.faq-list summary {
  cursor: pointer;
  font-size: 20px;
  font-weight: 900;
}

.faq-list p {
  margin: 14px 0 0;
  color: var(--muted);
}

.service-hero {
  min-height: 560px;
  padding: 138px clamp(16px, 5vw, 72px) 72px;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(17, 19, 21, 0.92), rgba(17, 19, 21, 0.54)),
    url("assets/renovation-hero.png") center / cover;
}

.service-hero h1 {
  max-width: 880px;
  color: var(--white);
}

.service-hero p:not(.eyebrow) {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 20px;
  line-height: 1.55;
}

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

.service-card {
  position: relative;
  display: block;
  min-height: 260px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 6px 28px 6px 28px;
  background:
    linear-gradient(135deg, rgba(215,179,95,.14), transparent 45%),
    var(--white);
  box-shadow: 0 18px 48px rgba(23, 27, 31, .07);
  transition: transform .2s ease, box-shadow .2s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 62px rgba(23, 27, 31, .11);
}

.service-card span {
  color: var(--clay);
  font-weight: 900;
}

.service-card h2 {
  margin-top: 36px;
  font-size: 30px;
}

.service-page {
  max-width: 980px;
  margin: 0 auto;
  padding: clamp(34px, 7vw, 92px) clamp(16px, 5vw, 42px);
}

.service-page h1 {
  margin-top: 28px;
  color: var(--ink);
}

.service-page > p,
.service-page section p {
  color: var(--muted);
  font-size: 20px;
  line-height: 1.62;
}

.service-facts,
.price-table {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 34px 0;
}

.service-facts article,
.price-table article {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 6px 24px 6px 24px;
  background: var(--white);
  box-shadow: 0 16px 42px rgba(23, 27, 31, .07);
}

.service-facts b,
.price-table b {
  display: block;
  margin-bottom: 8px;
  font-size: 28px;
}

.service-facts span,
.price-table span {
  color: var(--clay);
  font-weight: 900;
}

@media (max-width: 960px) {
  .sales-tiers,
  .sales-hero,
  .sales-feature-grid,
  .service-grid,
  .service-facts,
  .price-table {
    grid-template-columns: 1fr;
  }

  .compare-row {
    grid-template-columns: 1fr;
  }

  .compare-row span,
  .compare-row b {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}
