/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* Tokens */
:root {
  --bg: #F3F2EB;
  --surface: #FCFBF7;
  --ink: #23261F;
  --muted: #5A5E53;
  --accent: #56651E;
  --accentText: #FCFBF7;
  --plateBg: #23261F;
  --plateText: #F3F2EB;
  --line: #D9D8CE;
  --accentDark: #3E4A15;
  --accentHover: #47541A;
  --accentPale: #C9D48A;
  --plateMuted: #C9CBBF;
  --plateLabel: #B9BCAE;
  --fontHead: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --fontBody: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --radiusTile: 8px;
  --radiusBtn: 999px;
  --shadowSoft: 0 1px 2px rgb(0 0 0 / .06), 0 12px 32px rgb(0 0 0 / .08);
  --shadowLift: 0 2px 4px rgb(0 0 0 / .08), 0 20px 44px rgb(0 0 0 / .12);
  --padX: clamp(16px, 4vw, 40px);
  --gap: clamp(64px, 9vw, 128px);
  --err: #8A2B1E;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--fontBody);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; object-fit: cover; }
h1, h2, h3, h4 { font-family: var(--fontHead); font-weight: 750; line-height: 1.12; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.4rem, 4.6vw + 0.6rem, 4.6rem); line-height: 1.06; }
h2 { font-size: clamp(1.8rem, 2.6vw + 0.8rem, 3rem); line-height: 1.15; margin-bottom: 16px; }
h3 { font-size: clamp(1.2rem, 1rem + 0.6vw, 1.5rem); }
p { max-width: 68ch; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accentDark); }

/* Layout */
.pageWrap { max-width: 1200px; margin: 0 auto; padding-inline: var(--padX); }
.pageWrap p { margin-bottom: 16px; }
.block { padding-block: var(--gap); position: relative; }
.typeLead {
  font-family: var(--fontHead);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 750;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--accent);
  max-width: 30ch;
  margin-bottom: 32px;
}

/* Background bands with soft wave */
.stepsBand, .servicesBand, .faqBand {
  background: var(--surface);
  -webkit-clip-path: ellipse(130% 100% at 50% 0%);
  clip-path: ellipse(130% 100% at 50% 0%);
  margin-top: -8px;
  padding-top: calc(var(--gap) + 24px);
}
.pricesBand, .trustBand {
  background: var(--surface);
  -webkit-clip-path: ellipse(130% 100% at 50% 100%);
  clip-path: ellipse(130% 100% at 50% 100%);
  padding-bottom: calc(var(--gap) + 24px);
}

/* Skip link */
.skipLink {
  position: absolute; left: -9999px; top: 8px; z-index: 100;
  background: var(--ink); color: var(--plateText);
  padding: 10px 18px; border-radius: var(--radiusBtn);
}
.skipLink:focus { left: 8px; color: var(--plateText); }

/* Header */
.topBar {
  position: fixed; top: 16px; left: 0; right: 0; z-index: 50;
  display: flex; justify-content: center;
  pointer-events: none;
}
.topBarInner {
  pointer-events: auto;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  gap: 16px;
  width: min(1080px, calc(100% - 2 * var(--padX)));
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radiusBtn);
  box-shadow: var(--shadowSoft);
  padding: 10px 14px;
  min-height: 64px;
}
.topBarCta { justify-self: end; }
.brandMark {
  font-family: var(--fontHead); font-weight: 750; font-size: 1.1rem;
  color: var(--ink); text-decoration: none; white-space: nowrap;
  justify-self: center;
}

/* Menu button */
.menuBtn {
  justify-self: start;
  display: inline-flex; align-items: center; gap: 10px;
  background: none; border: 0; cursor: pointer;
  font: 600 1rem var(--fontBody); color: var(--ink);
  min-height: 44px; padding: 4px 8px; border-radius: var(--radiusBtn);
}
.menuBtn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.menuBtnBar, .menuBtnBar::before, .menuBtnBar::after {
  content: ""; display: block; width: 20px; height: 2px;
  background: var(--ink); border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}
.menuBtnBar { position: relative; }
.menuBtnBar::before { position: absolute; top: -6px; }
.menuBtnBar::after { position: absolute; top: 6px; }
.menuBtn[aria-expanded="true"] .menuBtnBar,
.navShown .menuBtnBar { background: transparent; }
.menuBtn[aria-expanded="true"] .menuBtnBar::before,
.navShown .menuBtnBar::before { transform: translateY(6px) rotate(45deg); background: var(--ink); }
.menuBtn[aria-expanded="true"] .menuBtnBar::after,
.navShown .menuBtnBar::after { transform: translateY(-6px) rotate(-45deg); background: var(--ink); }

/* Fullscreen nav */
.mainNav {
  position: fixed; inset: 0; z-index: 40;
  background: var(--plateBg); color: var(--plateText);
  display: flex; align-items: center; justify-content: center;
  padding: 96px var(--padX) 48px;
  overflow-y: auto;
  opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s ease;
}
.mainNav.navShown, .navShown .mainNav { opacity: 1; visibility: visible; }
.mainNav[hidden] { display: none; }
.mainNavWrap { width: min(760px, 100%); }
.mainNavList { list-style: none; }
.mainNavList li { border-bottom: 1px solid rgb(243 242 235 / .18); }
.navItem {
  display: block; padding: 18px 8px;
  font-family: var(--fontHead); font-weight: 700;
  font-size: clamp(1.5rem, 4vw + 0.6rem, 2.4rem);
  color: var(--plateText); text-decoration: none;
  position: relative;
}
.navItem::after {
  content: ""; position: absolute; left: 0; bottom: 14px; height: 2px; width: 0;
  background: var(--plateText); transition: width .35s ease;
}
.navItem:hover::after, .navItem:focus-visible::after { width: 64px; }
.navItem:focus-visible { outline: 2px solid var(--accentPale); outline-offset: 4px; }
.navItem[aria-current="page"] { color: var(--accentPale); }
.mainNavContacts { margin-top: 40px; }
.mainNavContacts ul { list-style: none; display: flex; flex-wrap: wrap; gap: 12px 40px; }
.mainNavContacts span { color: var(--plateLabel); font-size: .9rem; margin-right: 6px; }
.mainNavContacts a { color: var(--plateText); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 26px;
  border: 2px solid var(--accent); border-radius: var(--radiusBtn);
  background: var(--accent); color: var(--accentText);
  font: 600 1rem var(--fontBody);
  text-decoration: none; cursor: pointer;
  position: relative; overflow: hidden;
  transition: transform .18s ease, background-color .18s ease, box-shadow .18s ease;
}
.btn::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 100%;
  background: var(--accentDark); transform: translateY(100%);
  transition: transform .28s ease; z-index: -1;
}
.btn:hover { background: var(--accentHover); color: var(--accentText); transform: translateY(-1px); box-shadow: var(--shadowSoft); }
.btn:hover::before { transform: translateY(0); }
.btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.btn:active { transform: translateY(0); box-shadow: none; background: var(--accentDark); }
.btn > *, .btn span { position: relative; z-index: 1; }
.btnGhost { background: transparent; color: var(--accent); border-color: var(--accent); }
.btnGhost:hover { color: var(--accentText); }
.btnLocked { opacity: .65; pointer-events: none; }

/* Tiles */
.tile {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radiusTile);
  box-shadow: var(--shadowSoft);
  padding: 28px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.tile:hover, .tile:focus-within { transform: translateY(-4px); box-shadow: var(--shadowLift); }

/* Hero */
.heroSplit { padding-top: calc(var(--gap) + 56px); background: var(--bg); }
.heroGrid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 48px; align-items: start; }
.heroCopy { grid-column: 1 / 6; }
.heroForm { grid-column: 6 / 12; }
.heroHead { margin-bottom: 20px; }
.heroLead { font-size: clamp(1.05rem, 0.95rem + 0.4vw, 1.25rem); margin-bottom: 14px; }
.heroCopy .btn { margin-top: 10px; margin-bottom: 32px; }
.heroPhoto { margin-top: 24px; }
.heroPhoto img { width: 100%; aspect-ratio: 1 / 1; max-height: 520px; border-radius: var(--radiusTile); }
.heroForm {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radiusTile); box-shadow: var(--shadowSoft);
  padding: clamp(24px, 3vw, 40px);
}
.formHead { margin-bottom: 12px; }
.formIntro { color: var(--muted); margin-bottom: 20px; }

/* Form */
.formField { margin-bottom: 18px; }
.fieldLabel { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 6px; }
.formInput {
  width: 100%; font: 400 1rem var(--fontBody); color: var(--ink);
  background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--radiusTile); padding: 12px 14px;
  min-height: 46px;
}
.formInput::placeholder { color: var(--muted); opacity: 1; }
.formInput:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.fieldErr .formInput, .fieldErr .formArea,
.formInput.fieldErr, .formArea.fieldErr { border-color: var(--err); }
.fieldErr .fieldLabel { color: var(--err); }
.formArea { resize: vertical; min-height: 120px; max-height: 220px; }
.formCheck { margin-bottom: 14px; }
.formCheck label { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; font-size: .875rem; line-height: 1.5; }
.formCheck input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent); }
.formCheck input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.formHint { font-size: .875rem; color: var(--muted); margin-bottom: 14px; }
.submitBtn { width: auto; padding: 14px 32px; }

/* Steps */
.stepsGrid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px;
  padding: 0; margin-top: 24px;
  background: none; border: 0; box-shadow: none;
}
.stepsGrid.tile:hover, .stepsGrid.tile:focus-within { transform: none; box-shadow: none; }
.stepCard {
  background: var(--surface);
  display: flex; flex-direction: column; align-content: start;
}
.stepsGrid { grid-auto-rows: 1fr; }
.stepNo {
  font-family: var(--fontHead); font-weight: 750;
  font-size: clamp(2rem, 2vw + 1rem, 2.8rem);
  color: var(--accent); margin-bottom: 8px;
}
.stepCard h3 { margin-bottom: 8px; }
.stepCard p { margin: 0; }
.stepsPhoto { margin-top: 32px; }
.stepsPhoto img { width: 100%; max-height: 520px; border-radius: var(--radiusTile); }

/* Services tabs */
.serviceTabs { display: grid; grid-template-columns: minmax(280px, 4fr) 8fr; gap: 32px; margin: 24px 0; align-items: start; }
.tabListWrap { display: flex; flex-direction: column; }
.tabBtn {
  text-align: left; background: none; border: 0; border-bottom: 1px solid var(--line);
  padding: 14px 0; cursor: pointer; margin: 0;
  font: 600 clamp(1rem, 0.9rem + 0.3vw, 1.15rem) var(--fontBody);
  color: var(--ink); min-height: 48px;
  transition: color .2s ease, padding-left .25s ease;
}
.tabBtn:hover { color: var(--accent); padding-left: 14px; }
.tabBtn:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: 4px; }
.tabBtn[aria-selected="true"] { color: var(--accent); padding-left: 14px; font-weight: 700; }
.tabNo { color: var(--muted); font-weight: 400; margin-right: 10px; }
.tabPanel h3 { margin-bottom: 12px; }

/* Prices */
.priceList { list-style: none; margin-top: 24px; display: grid; gap: 12px; }
.priceRow {
  display: flex; justify-content: space-between; align-items: baseline; gap: 24px;
  padding: 18px 24px;
}
.priceRow:hover { transform: none; box-shadow: var(--shadowSoft); }
.priceVal { font-weight: 700; white-space: nowrap; color: var(--accent); }

/* FAQ */
.qaList { display: grid; gap: 12px; margin-top: 24px; }
.qaList summary {
  cursor: pointer; font-family: var(--fontHead); font-weight: 700;
  font-size: 1.1rem; list-style: none;
  min-height: 44px; display: flex; align-items: center;
}
.qaList summary::-webkit-details-marker { display: none; }
.qaList summary::before {
  content: ""; width: 12px; height: 12px; flex: none; margin-right: 14px;
  border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(45deg); transition: transform .25s ease;
}
.qaList details[open] summary::before { transform: rotate(-135deg); }
.qaList details[open] { border-color: var(--accent); }
.qaList summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.qaList p { margin: 12px 0 4px; color: var(--muted); }

/* Trust */
.trustGrid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center; }
.trustPhoto { overflow: hidden; border-radius: var(--radiusTile); }
.trustPhoto img { width: 100%; height: 100%; aspect-ratio: 4 / 3; border-radius: var(--radiusTile); }

/* Contact plate */
.contactBand { padding-bottom: var(--gap); }
.darkPlate {
  background: var(--plateBg); color: var(--plateText);
  border-radius: var(--radiusTile); padding: clamp(28px, 4vw, 56px);
}
.darkPlate h2 { color: var(--plateText); }
.plateText { color: var(--plateMuted); max-width: 60ch; margin-bottom: 20px; }
.darkPlate a { color: var(--accentPale); }
.darkPlate ul { list-style: none; display: flex; flex-wrap: wrap; gap: 12px 40px; }
.darkPlate ul span { color: var(--plateLabel); font-size: .9rem; margin-right: 6px; }

/* Footer */
.siteFoot { background: var(--surface); border-top: 1px solid var(--line); padding: 56px 0 40px; }
.footGrid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px 32px; }
.footBrand { justify-self: start; }
.footNote { color: var(--muted); font-size: .95rem; margin-top: 14px; }
.footTitle { font-size: 1rem; margin-bottom: 14px; }
.footList { list-style: none; }
.footList li { margin-bottom: 8px; }
.footLink { color: var(--ink); text-decoration: none; }
.footLink:hover { color: var(--accent); text-decoration: underline; }
.siteFoot address { font-style: normal; }
.siteFoot address p { font-size: .95rem; color: var(--muted); margin-bottom: 8px; }
.siteFoot .footCol ul:not(.footList) li { font-size: .95rem; }
.footOwner { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }
.footCopy { font-size: .875rem; color: var(--muted); margin-top: 16px; }

/* Inner pages */
.pageHead { padding-top: calc(var(--gap) + 72px); }
.pageHead h1 { margin-bottom: 20px; }
.pageHead p { font-size: clamp(1.05rem, 0.95rem + 0.4vw, 1.25rem); color: var(--muted); max-width: 60ch; }
.richText { max-width: 760px; }
.richText h2 { margin-top: 40px; }
.richText h3 { margin-top: 32px; }
.richText ul, .richText ol { margin: 0 0 16px 24px; }
.richText li { margin-bottom: 8px; }
.richText table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: .95rem; }
.richText th, .richText td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.richText th { font-family: var(--fontHead); font-weight: 700; }
.keyBox {
  background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent);
  border-radius: var(--radiusTile); padding: 24px 28px; margin: 24px 0 40px;
}
.keyBox p { margin-bottom: 8px; }
.keyBox p:last-child { margin-bottom: 0; }
.confirmWrap { min-height: 60vh; display: flex; align-items: center; }
.errWrap { text-align: center; padding-top: calc(var(--gap) + 72px); }
.errWrap .btn { margin-top: 24px; }

/* Reveal */
.fadeUp { opacity: 1; }
html.domReady .fadeUp { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
html.domReady .fadeUp.fadedIn { opacity: 1; transform: none; }

/* Breakpoints */
@media (max-width: 1280px) {
  .heroGrid { gap: 36px; }
  .trustGrid { gap: 36px; }
}
@media (max-width: 1024px) {
  .heroGrid { grid-template-columns: 1fr; }
  .heroForm { grid-column: 1 / -1; order: 0; }
  .heroCopy { grid-column: 1 / -1; }
  .heroPhoto img { max-width: 560px; }
  .serviceTabs { grid-template-columns: 1fr; }
  .trustGrid { grid-template-columns: 1fr; }
  .footGrid { grid-template-columns: 1fr 1fr; }
  .stepsGrid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .topBarInner { gap: 8px; padding: 8px 10px; }
  .topBarCta { padding: 0 18px; font-size: .9rem; }
  .stepsGrid { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .submitBtn { width: 100%; padding: 16px; font-size: 16px; }
  .formArea { min-height: 110px; max-height: 180px; }
  .priceRow { flex-direction: column; gap: 4px; align-items: flex-start; }
  .contactBand .darkPlate ul { flex-direction: column; gap: 8px; }
}
@media (max-width: 640px) {
  .footGrid { grid-template-columns: 1fr; gap: 28px; }
  .menuBtnText { display: none; }
  .block { padding-block: calc(var(--gap) * 0.8); }
  .richText table { display: block; overflow-x: auto; }
}
@media (max-width: 480px) {
  .topBar { top: 8px; }
  .brandMark { font-size: .95rem; }
  .topBarCta { padding: 0 14px; }
  .tile { padding: 20px; }
  .heroForm { padding: 20px; }
  .tabBtn { padding: 12px 4px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  html.domReady .fadeUp { opacity: 1; transform: none; }
}

/* Hero bottom alignment */
@media (min-width: 1025px) {
  .heroPhoto { margin-top: auto; }
  .heroCopy { display: flex; flex-direction: column; }
  .heroCopy .btn { align-self: flex-start; }
}

/* Background layer */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(620px 420px at 8% 6%, rgb(86 101 30 / .10), transparent 68%),
    radial-gradient(760px 520px at 94% 30%, rgb(35 38 31 / .08), transparent 70%),
    radial-gradient(560px 460px at 22% 88%, rgb(86 101 30 / .07), transparent 72%);
}
.heroSplit::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 50%; z-index: -1;
  background: linear-gradient(180deg, rgb(86 101 30 / .09), rgb(35 38 31 / .05));
}
@media (max-width: 1024px) {
  .heroSplit::after { display: none; }
}
@media (max-width: 480px) {
  body::before {
    background:
      radial-gradient(420px 320px at 10% 4%, rgb(86 101 30 / .10), transparent 70%),
      radial-gradient(420px 340px at 90% 60%, rgb(35 38 31 / .07), transparent 72%);
  }
}
