@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;650;700;750;800&display=swap");

:root {
  color-scheme: light;
  --cream: #f5f1e8;
  --paper: #fffcf7;
  --ink: #1f2e2b;
  --hero-text: #f8f4ea;
  --hero-muted: #d9dbcb;
  --muted: #53615b;
  --line: #cbc9ba;
  --accent: #a43f1e;
  --accent-dark: #7f2c12;
  --rust-light: #ffb185;
  --max-width: 1232px;
  font: 16px/1.55 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--cream); }
[hidden] { display: none !important; }
h1, h2, p { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid #bf562b; outline-offset: 3px; }

.frame { width: min(100% - 40px, var(--max-width)); margin-inline: auto; }
.skip { position: absolute; top: 8px; left: 12px; padding: 12px; background: var(--paper); transform: translateY(-140%); z-index: 2; }
.skip:focus { transform: translateY(0); }

.header { background: var(--cream); }
.header-inner, .footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.header-inner { min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 12px; min-height: 48px; font-weight: 750; letter-spacing: -.03em; line-height: 1.06; }
.brand strong { display: block; font-weight: 500; color: var(--muted); }
.mark { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--ink); font-size: .96rem; letter-spacing: -.08em; }
.header-link { display: inline-flex; align-items: center; min-height: 44px; gap: 8px; font-size: .86rem; font-weight: 750; }
.header-link:hover { color: var(--accent); }

.hero {
  color: var(--hero-text);
  background-color: var(--ink);
  background-image: repeating-linear-gradient(105deg, transparent 0 84px, #f5f1e80b 85px, transparent 86px);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(28px, 5vw, 78px);
  padding-block: clamp(38px, 6vw, 90px);
}
.hero-copy { padding-block: 12px; }
.area { display: inline-block; padding-block: 6px; margin-bottom: 22px; border-bottom: 1px solid var(--rust-light); color: var(--rust-light); font-size: .85rem; font-weight: 700; letter-spacing: .06em; }
h1 { font-size: clamp(2.75rem, 5vw, 4.75rem); font-weight: 750; line-height: .99; letter-spacing: -.068em; }
h1 em { font-style: normal; color: var(--rust-light); }
.intro { max-width: 48ch; font-size: clamp(1rem, 1.4vw, 1.15rem); margin-top: 26px; color: var(--hero-muted); }
.scope { display: flex; align-items: center; flex-wrap: wrap; gap: 9px 20px; margin-top: 26px; font-size: .87rem; color: var(--hero-muted); }
.scope span { padding-bottom: 6px; border-bottom: 1px solid #d9dbcb56; }

.estimate {
  scroll-margin-top: 20px;
  color: var(--ink);
  background: var(--paper);
  padding: clamp(20px, 3vw, 36px);
  border-top: 4px solid var(--rust-light);
}
.estimate h2, .thanks h1 { font-size: clamp(1.65rem, 2.7vw, 2.45rem); line-height: 1.06; letter-spacing: -.055em; }
.form-intro { margin: 8px 0 20px; color: var(--muted); font-size: .95rem; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px 14px; }
.wide { grid-column: 1 / -1; }
label { display: block; font-size: .86rem; font-weight: 700; }
.optional, .hint { color: var(--muted); font-weight: 500; }
.hint { display: block; margin-top: 5px; font-size: .8rem; }
input:not([type="hidden"]), textarea, select {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  margin-top: 4px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: white;
  font-size: 1rem;
}
textarea { min-height: 82px; resize: vertical; }
.submit, .return-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 10px 15px;
  border: 0;
  border-radius: 2px;
  background: var(--accent);
  color: white;
  cursor: pointer;
  font-weight: 750;
}
.submit { width: 100%; margin-top: 17px; text-align: left; }
.submit:hover, .return-link:hover { background: var(--accent-dark); }
.privacy, .preview-state { margin-top: 9px; font-size: .78rem; color: var(--muted); }
.preview-state { padding: 10px; border: 1px solid var(--line); }

.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; padding-block: 40px; }
.services article { border-top: 1px solid var(--line); padding-top: 15px; }
.services h2 { font-size: 1.12rem; letter-spacing: -.025em; }
.services p { margin-top: 5px; color: var(--muted); }
.text-link { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; font-weight: 700; font-size: .86rem; color: var(--accent-dark); text-decoration: underline; text-underline-offset: .24em; }
.text-link:hover { text-decoration-thickness: 2px; }
.text-link.light { color: var(--hero-text); margin-top: 18px; }

.footer { border-top: 1px solid var(--line); }
.footer-inner { min-height: 65px; color: var(--muted); font-size: .8rem; }
.thanks { width: min(100% - 40px, 550px); margin: 12vh auto; background: var(--paper); padding: clamp(24px, 5vw, 48px); border-top: 4px solid var(--accent); }
.thanks p { margin-block: 14px 22px; color: var(--muted); }
.return-link { display: inline-flex; }

@media (max-width: 865px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); max-width: 650px; }
  .hero-copy { padding-block: 0; }
  .services { gap: 20px; }
}

@media (max-width: 540px) {
  .frame { width: calc(100% - 28px); }
  .header-inner { gap: 8px; min-height: 68px; }
  .brand { gap: 8px; font-size: .96rem; }
  .mark { width: 34px; height: 36px; }
  .header-link { font-size: .78rem; gap: 5px; }
  .hero-grid { padding-block: 32px; }
  h1 { font-size: clamp(2.35rem, 9.5vw, 3.5rem); }
  .services { grid-template-columns: minmax(0, 1fr); gap: 18px; padding-block: 28px; }
}

@media (max-width: 380px) {
  .estimate { padding: 18px 14px; }
  .field-grid { gap: 12px 9px; }
}
