*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

[hidden] { display: none !important; }

:root {
  --bg: #f7f5f2;
  --bg-warm: #fbf9f6;
  --bg-band: #efeae2;
  --card: #fff;
  --text: #1b1c1a;
  --text-soft: #5f615c;
  --text-muted: #6b6e68;
  --line: #e8e4de;
  --line-light: #f0ece7;
  --accent: #c44e12;
  --accent-hover: #ad430e;
  --accent-light: #f8eee6;
  --dark: #1b1c1a;
  --container: 1160px;
  --header-h: 72px;
  --radius: 20px;
  --font: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --h1: clamp(36px, 4.2vw, 56px);
  --h2: clamp(28px, 3.2vw, 46px);
  --shadow-card: 0 8px 28px rgba(28, 24, 20, 0.045);
  --shadow-hover: 0 14px 36px rgba(28, 24, 20, 0.08);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background:
    radial-gradient(1200px 520px at 12% -10%, rgba(255, 248, 240, 0.9), transparent 58%),
    radial-gradient(900px 480px at 100% 8%, rgba(255, 244, 232, 0.55), transparent 52%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
button, input { font: inherit; }
a { color: inherit; }

.skip-link {
  position: absolute;
  left: 16px;
  top: -40px;
  z-index: 200;
  background: var(--accent);
  color: #fff;
  padding: 8px 12px;
  border-radius: 10px;
}
.skip-link:focus { top: 12px; }

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 32%, transparent);
  outline-offset: 2px;
}

.container {
  width: min(var(--container), calc(100% - 64px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
  white-space: nowrap;
}

.brand-mark {
  position: relative;
  width: 18px;
  height: 18px;
  background: var(--accent);
  border-radius: 3px;
  transform: rotate(45deg);
  flex: 0 0 auto;
}
.brand-mark::after {
  content: "";
  position: absolute;
  inset: 4px;
  background: #fff;
  border-radius: 1px;
}

.version-chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--accent-light);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
}
.desktop-nav a {
  position: relative;
  text-decoration: none;
  color: #4d4f4b;
  font-size: 15px;
  font-weight: 600;
  padding: 8px 0;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.desktop-nav a:hover { color: var(--text); }
.desktop-nav a.quiet { color: var(--text-muted); font-weight: 500; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 22px;
  border: 0;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}
.button:hover { background: var(--accent-hover); }
.button-quiet {
  background: #fff;
  color: var(--text);
}
.button-small {
  min-height: 42px;
  padding: 10px 18px;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f3f0eb;
  padding: 0;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.menu-toggle i,
.menu-toggle i::before,
.menu-toggle i::after {
  display: block;
  width: 16px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  position: relative;
}
.menu-toggle i::before,
.menu-toggle i::after {
  content: "";
  position: absolute;
  left: 0;
}
.menu-toggle i::before { top: -5px; }
.menu-toggle i::after { top: 5px; }

.mobile-menu {
  position: fixed;
  inset: var(--header-h) 0 0;
  z-index: 90;
}
.mobile-menu-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(27, 28, 26, 0.28);
  cursor: pointer;
}
.mobile-menu-panel {
  position: relative;
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  padding: 12px 20px 20px;
  gap: 4px;
}
.mobile-menu-panel a {
  min-height: 44px;
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 16px;
}

body.menu-open { overflow: hidden; }

.hero { padding: 0; }
.hero-stage {
  position: relative;
  min-height: min(84vh, 780px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  background: #1a1815;
}
.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% 46%;
}
.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(22, 20, 17, 0.62) 0%, rgba(22, 20, 17, 0.32) 32%, rgba(22, 20, 17, 0.08) 54%, transparent 76%),
    linear-gradient(180deg, rgba(22, 20, 17, 0.12) 0%, transparent 36%, rgba(22, 20, 17, 0.28) 100%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  align-items: end;
  padding: 72px 0 36px;
  min-height: min(84vh, 780px);
}
.hero-content {
  max-width: 640px;
  padding-bottom: 28px;
}
.eyebrow {
  color: var(--accent);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 12px;
}
.hero .eyebrow {
  color: #f0b089;
  margin-bottom: 16px;
}
.hero h1 {
  margin: 0 0 18px;
  color: #fff;
  font-size: var(--h1);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.03em;
  max-width: 14ch;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.28);
}
.hero-lead {
  margin: 0 0 28px;
  max-width: 520px;
  color: rgba(255, 248, 240, 0.86);
  font-size: 18px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 0;
}
.hero-fact {
  position: absolute;
  right: 0;
  bottom: 40px;
  z-index: 3;
  margin: 0;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(20, 16, 12, 0.12);
}

.projects {
  padding: 64px 0 24px;
}
.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}
.section-heading h2,
.calculator-heading h2,
.closing h2 {
  margin: 0;
  font-size: var(--h2);
  line-height: 1.14;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.section-heading p,
.calculator-heading p,
.closing p {
  margin: 10px 0 0;
  color: var(--text-soft);
}

.budget-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.budget-bar span {
  color: var(--text-soft);
  font-size: 15px;
  font-weight: 600;
}
.budget-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.budget-chip {
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--text-soft);
  font-weight: 600;
  cursor: pointer;
}
.budget-chip:hover { border-color: #d6cfc5; }
.budget-chip.is-active {
  border-color: var(--accent);
  background: var(--accent-light);
  color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

.budget-slider-bar {
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}
.matcher-budget-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.matcher-budget-head span {
  color: var(--text-soft);
  font-size: 15px;
  font-weight: 600;
}
.matcher-budget-head strong {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
}
.matcher-slider-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 44px;
  justify-content: center;
}
.matcher-slider-wrap input[type="range"] {
  width: 100%;
  height: 34px;
  margin: 0;
  padding: 0;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  cursor: pointer;
}
.matcher-slider-wrap input[type="range"]::-webkit-slider-runnable-track {
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent) 0 var(--budget-progress, 100%), #d7d4cd var(--budget-progress, 100%) 100%);
}
.matcher-slider-wrap input[type="range"]::-webkit-slider-thumb {
  width: 28px;
  height: 28px;
  margin-top: -10px;
  appearance: none;
  -webkit-appearance: none;
  border: 6px solid #fff;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 3px 12px rgba(52, 37, 25, 0.22);
  cursor: grab;
}
.matcher-slider-wrap input[type="range"]:active::-webkit-slider-thumb {
  cursor: grabbing;
}
.matcher-slider-wrap input[type="range"]::-moz-range-track {
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: #d7d4cd;
}
.matcher-slider-wrap input[type="range"]::-moz-range-progress {
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
}
.matcher-slider-wrap input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border: 6px solid #fff;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 3px 12px rgba(52, 37, 25, 0.22);
  cursor: grab;
}
.matcher-scale-points {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.matcher-scale-points span {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.project-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.project-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}
.project-card.is-selected { border-color: var(--accent); }
.project-media {
  aspect-ratio: 16 / 11;
  overflow: hidden;
  background: #e8e2da;
}
.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.project-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.project-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.project-head h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
}
.project-price {
  color: var(--accent);
  font-size: 15px;
  font-weight: 800;
  white-space: nowrap;
}
.project-specs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
}
.project-action {
  margin-top: auto;
  align-self: flex-end;
  min-height: 44px;
  min-width: 132px;
  padding: 9px 14px;
  border: 0;
  border-radius: 12px;
  background: #f4f2ee;
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
}
.project-action:hover {
  background: var(--accent-light);
  color: var(--accent);
}
.popular-empty {
  margin: 8px 0 0;
  color: var(--text-muted);
  font-size: 15px;
}

.calculator {
  padding: 64px 0 72px;
  background: var(--bg-band);
  scroll-margin-top: calc(var(--header-h) + 12px);
}
.projects { scroll-margin-top: calc(var(--header-h) + 12px); }
.calculator-heading {
  max-width: 720px;
  margin-bottom: 28px;
}
.calculator-heading .eyebrow { margin-bottom: 12px; }
.calculator-heading p { font-size: 16px; }

.calc-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.9fr);
  gap: 28px;
  align-items: start;
}

.calc-config {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.option-group {
  padding: 22px 18px;
  border-bottom: 1px solid var(--line-light);
}
.option-group:last-child { border-bottom: 0; }
.option-group h3 {
  margin: 0 0 14px;
  font-size: 17px;
  font-weight: 800;
}

.calc-filters {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}
.calc-filters .budget-bar { margin-bottom: 0; }
.option-group-note {
  margin: 12px 0 0;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.45;
}
#dynamicOptions:empty { display: none; }
#dynamicOptions > .option-group { border-bottom: 0; }
.option-group[hidden] { display: none; }
.picker-tile[hidden] { display: none; }

.picker-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  max-height: 28rem;
  overflow-y: auto;
}
.picker-tile {
  display: flex;
  flex-direction: column;
  text-align: left;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
  cursor: pointer;
  min-height: 44px;
}
.picker-tile:hover { border-color: #d6cfc5; background: var(--bg-warm); }
.picker-tile.is-active {
  border: 1.5px solid var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
  background: var(--bg-warm);
}
.picker-photo {
  display: block;
  aspect-ratio: 16 / 11;
  background: #e8e2da;
}
.picker-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.picker-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 10px 10px;
}
.picker-meta strong {
  font-size: 14px;
  font-weight: 800;
}
.picker-meta small {
  color: var(--text-muted);
  font-size: 12px;
}

.option-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr));
  gap: 10px;
}
.option-button {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-height: 64px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
  text-align: left;
}
.option-button strong {
  font-size: 16px;
  font-weight: 600;
}
.option-button small {
  color: var(--text-muted);
  font-size: 14px;
}
.option-button:hover { border-color: #d6cfc5; background: var(--bg-warm); }
.option-button.is-active {
  border: 1.5px solid var(--accent);
  background: var(--bg-warm);
  box-shadow: 0 0 0 1px var(--accent);
}
.option-button.is-active::after {
  content: "✓";
  position: absolute;
  top: 8px;
  right: 8px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  display: grid;
  place-items: center;
}

.extra-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}
.extra-row span { color: var(--text-muted); font-size: 14px; }
.switch {
  position: relative;
  width: 48px;
  height: 28px;
  flex: 0 0 auto;
}
.switch input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.switch i {
  display: block;
  width: 48px;
  height: 28px;
  border-radius: 999px;
  background: #e4dfd8;
  transition: background 0.15s ease;
}
.switch i::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
  transition: transform 0.15s ease;
}
.switch input:checked + i { background: var(--accent); }
.switch input:checked + i::after { transform: translateX(20px); }

.calc-summary {
  position: sticky;
  top: calc(var(--header-h) + 16px);
}
.summary-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 20px;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.summary-photo {
  aspect-ratio: 16 / 11;
  border-radius: 16px;
  overflow: hidden;
  background: #eae5de;
}
.summary-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.summary-kicker {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.summary-card h3 {
  margin: 0;
  font-size: 24px;
  font-weight: 800;
}
.summary-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.summary-chips li {
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--bg-warm);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-soft);
}
.summary-total-label {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
}
.summary-total {
  margin: 0;
  font-size: 32px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.summary-note {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.45;
}
.summary-inclusions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 4px;
  border-top: 1px solid var(--line-light);
}
.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
}
.summary-row span { color: var(--text-soft); }
.summary-row strong { font-weight: 600; text-align: right; }
.summary-card .button { width: 100%; }

.closing {
  padding: 72px 0;
  scroll-margin-top: calc(var(--header-h) + 12px);
}
.closing-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.8fr);
  gap: 36px;
  align-items: center;
}
.lead-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.lead-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
}
.lead-form input {
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.lead-form input:focus {
  border-color: var(--accent);
}
.form-error {
  margin: 0;
  color: #9b2c13;
  font-size: 14px;
}
.form-success {
  margin: 0;
  padding: 14px;
  border-radius: 12px;
  background: var(--accent-light);
  color: var(--text);
  font-weight: 600;
}
.form-hint {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 20px 0 28px;
  color: var(--text-muted);
  font-size: 14px;
}
.site-footer .container {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.site-footer a { color: var(--accent); text-decoration: none; font-weight: 600; }

.mobile-dock { display: none; }

@media (max-width: 960px) {
  .mobile-dock {
    position: sticky;
    bottom: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 20px -16px 0;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.96);
    border-top: 1px solid var(--line);
    box-shadow: 0 -8px 24px rgba(28, 24, 20, 0.06);
  }
  .mobile-dock small {
    display: block;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 600;
  }
  .mobile-dock strong {
    display: block;
    color: var(--accent);
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.02em;
  }

  .container { width: min(var(--container), calc(100% - 32px)); }
  .desktop-nav,
  .header-cta { display: none; }
  .menu-toggle { display: inline-flex; }
  .hero-stage,
  .hero-grid { min-height: 640px; }
  .hero-grid { padding: 36px 0 24px; }
  .hero h1 { max-width: none; }
  .hero-photo { object-position: 64% 48%; }
  .hero-fact {
    position: static;
    justify-self: start;
    margin-top: 18px;
    max-width: 100%;
    white-space: normal;
    line-height: 1.35;
  }
  .hero-actions { flex-direction: column; }
  .hero-actions .button { width: 100%; }
  .section-heading,
  .budget-bar { flex-direction: column; align-items: flex-start; }
  .project-grid,
  .calc-layout,
  .closing-grid,
  .picker-grid,
  .option-buttons { grid-template-columns: 1fr; }
  .picker-grid {
    display: flex;
    max-height: none;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    padding-bottom: 4px;
  }
  .picker-tile {
    flex: 0 0 72%;
    scroll-snap-align: start;
  }
  .calc-summary { position: static; }
  .project-action { align-self: stretch; width: 100%; }
}

/* ——— after calculator ——— */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.anchor-alias {
  display: block;
  height: 0;
  overflow: hidden;
  scroll-margin-top: calc(var(--header-h) + 12px);
}

.band-heading { max-width: 720px; margin-bottom: 28px; }
.band-heading h2,
.compare h2,
.trust h2,
.works h2,
.process h2 {
  margin: 0;
  font-size: var(--h2);
  line-height: 1.14;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.band-heading p {
  margin: 10px 0 0;
  color: var(--text-soft);
  font-size: 16px;
}
.band-heading .eyebrow { margin-bottom: 12px; }

.button-outline {
  background: #fff;
  color: var(--text);
  border: 1px solid var(--line);
}
.button-outline:hover {
  background: var(--bg-warm);
  border-color: #d6cfc5;
}
.button:disabled,
.button[disabled] {
  background: color-mix(in srgb, var(--accent) 38%, #d4cfc8);
  cursor: not-allowed;
}
.button:disabled:hover,
.button[disabled]:hover {
  background: color-mix(in srgb, var(--accent) 38%, #d4cfc8);
}

.compare,
.trust,
.works,
.process,
.closing,
#lead { scroll-margin-top: calc(var(--header-h) + 12px); }

.compare { padding: 72px 0; }
.compare-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 28px;
  align-items: start;
}
.compare-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.dropzone {
  position: relative;
  min-height: 240px;
  padding: 28px 22px;
  border: 1.5px dashed #d4cdc4;
  border-radius: 24px;
  background: linear-gradient(180deg, #fff 0%, var(--bg-warm) 100%);
  box-shadow: var(--shadow-card);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.dropzone:hover,
.dropzone:focus-visible { border-color: var(--accent); background: #fff; }
.dropzone.is-dragover {
  border-style: solid;
  border-color: var(--accent);
  background: var(--accent-light);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent);
}
.dropzone.has-file {
  border-style: solid;
  border-color: var(--accent);
  background: #fff;
  min-height: 180px;
}
.dropzone-idle,
.dropzone-file {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.dropzone-idle strong {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.dropzone-idle span,
.dropzone-idle small { color: var(--text-muted); font-size: 14px; }

.doc-object {
  position: relative;
  width: 52px;
  height: 64px;
  margin: 0 0 10px;
}
.doc-sheet {
  position: absolute;
  inset: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  transform: translate(5px, -4px);
  opacity: 0.65;
}
.doc-sheet-front {
  transform: none;
  opacity: 1;
  background: #fff;
  box-shadow: var(--shadow-card);
}
.doc-sheet-front::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 16px;
  height: 16px;
  background: var(--accent-light);
  clip-path: polygon(0 0, 100% 100%, 0 100%);
}
.doc-sheet-front::before {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  top: 22px;
  height: 22px;
  background:
    linear-gradient(var(--line) 0 0) 0 0 / 100% 2px no-repeat,
    linear-gradient(var(--line) 0 0) 0 8px / 78% 2px no-repeat,
    linear-gradient(var(--line) 0 0) 0 16px / 90% 2px no-repeat;
}

.file-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  padding: 12px 16px;
  border-radius: 14px;
  background: var(--bg-warm);
  border: 1px solid var(--line);
  font-weight: 700;
  font-size: 15px;
}
.file-chip #estimateFileName {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 42ch;
}
.file-chip-mark {
  width: 22px;
  height: 28px;
  flex: 0 0 auto;
  border-radius: 4px;
  background: #fff;
  border: 1px solid var(--line);
  position: relative;
}
.file-chip-mark::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 8px;
  height: 8px;
  background: var(--accent-light);
  clip-path: polygon(0 0, 100% 100%, 0 100%);
}
.file-remove {
  margin-top: 10px;
  min-height: 44px;
  padding: 8px 14px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--text-muted);
  font-weight: 600;
  cursor: pointer;
}
.file-remove:hover { color: var(--accent); }
.compare-hint { margin: 0; color: var(--text-muted); font-size: 14px; }
.compare-form .button { align-self: flex-start; min-width: 280px; }
.compare-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 24px 22px;
  box-shadow: var(--shadow-card);
}
.compare-card h3 {
  margin: 6px 0 18px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.compare-get {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  counter-reset: get;
}
.compare-get li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  column-gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--line-light);
}
.compare-get li:first-child { border-top: 0; padding-top: 0; }
.compare-get li::before {
  counter-increment: get;
  content: "0" counter(get);
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding-top: 3px;
}
.compare-get strong { display: block; font-size: 16px; font-weight: 800; margin-bottom: 4px; }
.compare-get span { color: var(--text-soft); font-size: 15px; }
.compare-form .form-success a { color: var(--accent); }

.trust {
  padding: 72px 0;
  background: var(--bg-band);
}
.trust-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 40px;
  align-items: center;
}
.trust-photo {
  margin: 0;
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  background: #e8e2da;
  box-shadow: var(--shadow-hover);
  border: 1px solid var(--line);
}
.trust-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 5;
  min-height: 420px;
  max-height: 560px;
}
.trust-photo figcaption {
  position: absolute;
  left: 16px;
  bottom: 16px;
  margin: 0;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(20, 16, 12, 0.12);
}
.trust-claims { list-style: none; margin: 0; padding: 0; }
.trust-claims li {
  padding: 22px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
}
.trust-claims li:first-child { padding-top: 0; }
.trust-claims li:last-child { border-bottom: 0; padding-bottom: 0; }
.trust-claims span {
  display: block;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  margin-bottom: 8px;
}
.trust-claims strong {
  display: block;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.trust-claims p {
  margin: 0;
  color: var(--text-soft);
  font-size: 16px;
  max-width: 42ch;
  line-height: 1.5;
}
.trust-stage {
  margin-top: 8px;
}

.process { padding: 72px 0; }
.process-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 340px);
  gap: 32px;
  align-items: end;
  margin-bottom: 36px;
}
.process-intro .band-heading { margin-bottom: 0; }
.process-photo {
  margin: 0;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #e8e2da;
  box-shadow: var(--shadow-card);
}
.process-photo img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
}
.process-steps {
  list-style: none;
  margin: 0 0 28px;
  padding: 22px 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 22px;
}
.process-steps li { min-width: 0; }
.process-steps span {
  display: block;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  margin-bottom: 10px;
}
.process-steps strong {
  display: block;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.process-steps p { margin: 0; color: var(--text-soft); font-size: 15px; }
.process-lock {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 20px 22px;
  box-shadow: var(--shadow-card);
  margin-bottom: 24px;
}
.process-lock h3 {
  margin: 0 0 14px;
  font-size: 16px;
  font-weight: 800;
}
.process-lock ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.process-lock li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-left: 12px;
  border-left: 2px solid var(--accent);
}
.process-lock strong { font-size: 15px; font-weight: 800; }
.process-lock span { color: var(--text-muted); font-size: 14px; }

.closing-paths {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 22px 0 0;
}
.closing-mini {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  margin-top: 22px;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-card);
}
.closing-mini img {
  width: 120px;
  height: 88px;
  object-fit: cover;
  border-radius: 12px;
  background: #e8e2da;
}
.closing-mini small {
  display: block;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.closing-mini strong { display: block; font-size: 18px; font-weight: 800; }
.closing-mini span {
  display: block;
  color: var(--text-soft);
  font-size: 14px;
  margin: 4px 0 8px;
}
.closing-mini button {
  min-height: 44px;
  padding: 8px 14px;
  border: 0;
  border-radius: 12px;
  background: #f4f2ee;
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
}
.closing-mini button:hover {
  background: var(--accent-light);
  color: var(--accent);
}
.form-file-note {
  margin: 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--accent-light);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
}
.form-success a { color: var(--accent); }

.site-footer { padding: 40px 0 36px; }
.site-footer .container { display: block; }
.footer-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 32px 28px;
  align-items: start;
}
.footer-brand p {
  margin: 12px 0 14px;
  max-width: 36ch;
  line-height: 1.5;
}
.footer-grid strong {
  display: block;
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--text);
}
.footer-grid a {
  display: flex;
  align-items: center;
  min-height: 44px;
  color: var(--text-soft);
  text-decoration: none;
  font-weight: 600;
}
.footer-grid a:hover { color: var(--accent); }

@media (max-width: 1180px) {
  .desktop-nav,
  .header-cta { display: none; }
  .menu-toggle { display: inline-flex; }
}

@media (max-width: 960px) {
  .compare-layout,
  .trust-stage,
  .trust-scenes,
  .process-intro,
  .process-steps,
  .process-lock ul,
  .footer-grid { grid-template-columns: 1fr; }
  .compare,
  .trust,
  .works,
  .process { padding: 56px 0; }
  .trust-photo img { min-height: 0; max-height: 320px; aspect-ratio: 16 / 11; }
  .process-photo { max-width: 420px; }
  .process-steps {
    padding-top: 8px;
    border-top: 0;
    gap: 0;
  }
  .process-steps li {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    column-gap: 12px;
    padding: 16px 0;
    border-top: 1px solid var(--line);
  }
  .process-steps span { grid-row: 1 / 3; padding-top: 2px; }
  .compare-form .button { width: 100%; min-width: 0; }
  .closing-paths { flex-direction: column; }
  .closing-paths .button { width: 100%; }
  .closing-mini { grid-template-columns: 96px minmax(0, 1fr); }
  .closing-mini img { width: 96px; height: 72px; }
  .closing-mini button { width: 100%; }
}

.desktop-nav { gap: 20px; }
.closing-grid { align-items: start; }

@media (max-width: 1100px) {
  .process-steps { gap: 14px; }
  .process-steps strong { font-size: 16px; }
  .process-intro { gap: 20px; }
}


/* ——— mechanics strip, picker count, trust scenes ——— */

.mechanics {
  padding: 14px 0;
  background: #fff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.mechanics-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
}
.mechanic {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 22px 16px 0;
  margin-right: 22px;
  text-decoration: none;
  color: inherit;
  border-right: 1px solid var(--line);
  min-height: 44px;
}
.mechanic:last-child {
  border-right: 0;
  margin-right: 0;
  padding-right: 0;
}
.mechanic:hover strong { color: var(--accent); }
.mechanic span {
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
}
.mechanic strong {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.mechanic em {
  font-style: normal;
  color: var(--text-soft);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
}

.filter-hint {
  margin: 2px 0 0;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.4;
}
.picker-count {
  margin: 6px 0 0;
  color: var(--text-soft);
  font-size: 14px;
  font-weight: 600;
}

.trust-scenes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}
.trust-scene {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 20px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.trust-scene span {
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
}
.trust-scene strong {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.trust-scene p {
  margin: 0;
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.5;
}
.trust-scene .trust-photo {
  margin: 0 0 6px;
  border-radius: 14px;
  box-shadow: none;
}
.trust-scene .trust-photo img {
  min-height: 0;
  aspect-ratio: 16 / 11;
}
.trust-scene .trust-photo figcaption {
  left: 10px;
  bottom: 10px;
  padding: 7px 11px;
  font-size: 12px;
}

@media (max-width: 960px) {
  .mechanic {
    padding: 14px 16px 14px 0;
    margin-right: 16px;
  }
}

@media (max-width: 720px) {
  .mechanics-row { grid-template-columns: 1fr; }
  .mechanic {
    margin-right: 0;
    padding: 14px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .mechanic:last-child { border-bottom: 0; padding-right: 0; }
}

/* ——— works gallery ——— */

.works {
  padding: 72px 0;
}

.works-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  max-width: none;
}
.works-heading .band-heading,
.works-heading > div { flex: 1; min-width: 0; }
.works-heading h2 { margin-bottom: 0; }
.works-heading .button { flex: 0 0 auto; white-space: nowrap; }

.works-rail {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 2px;
  -webkit-overflow-scrolling: touch;
  padding: 4px 2px 18px;
  overscroll-behavior-x: contain;
}
.works-rail .works-card {
  flex: 0 0 min(78vw, 340px);
  scroll-snap-align: start;
  text-decoration: none;
  color: inherit;
}
.works-rail .works-card:first-child {
  grid-column: auto;
  flex-basis: min(86vw, 420px);
}
.works-rail .works-card:first-child img {
  aspect-ratio: 4 / 3;
}

.works-grid,
.works-page-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}
.works-page-grid .works-card {
  text-decoration: none;
  color: inherit;
}

.works-card {
  margin: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
}

.works-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #e8e2da;
}

.works-card figcaption,
.works-card .works-caption {
  padding: 12px 16px 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-soft);
  line-height: 1.4;
}


@media (max-width: 960px) {
  .works-page-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .works-grid,
  .works-page-grid { grid-template-columns: 1fr; }
  .works-card:first-child { grid-column: auto; }
  .works-card:first-child img { aspect-ratio: 4 / 3; }
  .works-heading { flex-direction: column; align-items: flex-start; }
  .works-heading .button { width: 100%; }
}

.work-hero {
  margin: 18px 0 0;
  border-radius: 20px;
  overflow: hidden;
  background: #e8e2da;
  border: 1px solid var(--line);
}
.work-hero img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 78vh;
  object-fit: contain;
  background: #1b1c1a;
}
.work-back {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 600;
}
.work-back a { color: var(--accent); text-decoration: none; }
.work-nav {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}
.work-nav .button { flex: 1; text-align: center; }
.work-cta { margin-top: 22px; }
.work-page h1 { font-size: clamp(22px, 3vw, 36px); }


/* ——— catalog + project detail ——— */

.desktop-nav a[aria-current="page"] {
  color: var(--text);
}
.desktop-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 6px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.picker-open.button {
  position: relative;
  z-index: 2;
  width: 100%;
  margin-top: 8px;
  min-height: 44px;
  padding: 10px 12px;
  font-size: 14px;
  white-space: normal;
  text-align: center;
  pointer-events: auto;
}
.picker-meta { padding-bottom: 12px; }

.summary-project-link.button {
  width: 100%;
  margin-top: 8px;
}
.summary-card .button + .summary-project-link { margin-top: 10px; }

.catalog-page,
.project-page {
  padding: 36px 0 72px;
}

.catalog-page h1,
.project-page h1 {
  margin: 0;
  font-size: var(--h1);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.catalog-lead {
  margin: 14px 0 28px;
  max-width: 640px;
  color: var(--text-soft);
  font-size: 18px;
}

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

.catalog-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  min-height: 44px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.catalog-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: #d6cfc5;
}

.catalog-photo {
  display: block;
  aspect-ratio: 16 / 11;
  background: #e8e2da;
  overflow: hidden;
}

.catalog-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.catalog-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px 16px;
}

.catalog-meta strong {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.catalog-meta small {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
}

.catalog-meta em {
  font-style: normal;
  color: var(--accent);
  font-size: 15px;
  font-weight: 800;
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 22px;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
}

.crumbs a {
  color: var(--text-soft);
  text-decoration: none;
}

.crumbs a:hover { color: var(--accent); }

.text-link {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}
.text-link:hover { text-decoration: underline; }

.project-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 28px;
  align-items: start;
}

.project-hero {
  aspect-ratio: 16 / 11;
  border-radius: 20px;
  overflow: hidden;
  background: #e8e2da;
  border: 1px solid var(--line);
}

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

.project-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.project-thumb {
  flex: 0 0 88px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  background: #e8e2da;
  min-height: 44px;
}

.project-thumb img {
  width: 100%;
  height: 64px;
  object-fit: cover;
}

.project-thumb:hover { border-color: #d6cfc5; }

.project-thumb.is-active {
  border: 1.5px solid var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

.project-aside {
  position: sticky;
  top: calc(var(--header-h) + 16px);
}

.project-aside .summary-card h1 {
  font-size: 28px;
  line-height: 1.15;
}

.project-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.project-facts li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--bg-warm);
}

.project-facts span {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.project-facts strong {
  font-size: 15px;
  font-weight: 800;
}

.project-extra-fact {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg-warm);
}

.project-extra-fact strong { font-size: 15px; font-weight: 800; }
.project-extra-fact span { color: var(--text-muted); font-size: 14px; }

.project-foundation {
  padding: 0;
  border-bottom: 0;
}

.project-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.project-aside .summary-card .button { width: 100%; }

@media (max-width: 960px) {
  .catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .project-layout { grid-template-columns: 1fr; }
  .project-aside { position: static; }
}

@media (max-width: 720px) {
  .catalog-grid { grid-template-columns: 1fr; }
  .catalog-page h1,
  .project-page h1 { font-size: clamp(28px, 8vw, 40px); }
  .project-facts { grid-template-columns: 1fr; }
}


.project-live {
  margin-top: 40px;
}
.project-live .works-heading {
  margin-bottom: 16px;
}
.project-live .works-rail {
  margin: 0 -2px;
}


.project-plans {
  margin-top: 40px;
}
.project-plans .works-heading {
  margin-bottom: 16px;
}
.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 16px;
}
.plan-card {
  margin: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px 18px 14px;
  box-shadow: var(--shadow-card);
}
.plan-card img {
  width: 100%;
  height: auto;
  max-height: 720px;
  object-fit: contain;
  object-position: center;
  background: #fff;
  display: block;
}
.plan-card figcaption {
  margin-top: 10px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-soft);
}


.plan-card,
.plan-card img,
.works-card,
.works-card img,
.project-hero img {
  cursor: pointer;
}

body.lb-open {
  overflow: hidden;
  position: fixed;
  left: 0;
  right: 0;
  width: 100%;
}

.lb-overlay {
  position: fixed;
  inset: 0;
  z-index: 400;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 16px 28px;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: none;
  touch-action: pan-y;
}
.lb-overlay[hidden] { display: none !important; }

.lb-figure {
  margin: 0;
  max-width: 100%;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lb-img {
  max-width: 100%;
  max-height: calc(100dvh - 108px);
  width: auto;
  height: auto;
  object-fit: contain;
  background: transparent;
}

.lb-caption {
  margin-top: 10px;
  color: #f7f5f2;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  max-width: min(90vw, 720px);
  line-height: 1.4;
}

.lb-close,
.lb-prev,
.lb-next {
  position: absolute;
  z-index: 1;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: #f7f5f2;
  color: #1b1c1a;
  border-radius: 999px;
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.28);
}
.lb-close {
  top: 12px;
  right: 12px;
  font-size: 32px;
}
.lb-prev {
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
}
.lb-next {
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
}
.lb-close[hidden],
.lb-prev[hidden],
.lb-next[hidden] { display: none !important; }

@media (max-width: 720px) {
  .lb-prev { left: 6px; }
  .lb-next { right: 6px; }
}
