/* Base */
:root {
  --cBg: #F7F3EC;
  --cSurface: #FFFFFF;
  --cText: #1F1B16;
  --cMuted: #5E554B;
  --cAccent: #A64B22;
  --cAccentText: #FFFFFF;
  --cPlateBg: #1F1B16;
  --cPlateText: #F7F3EC;
  --cLine: #E4DCCF;
  --fHead: 'Iowan Old Style', 'Palatino Linotype', Palatino, 'Book Antiqua', Georgia, serif;
  --fBody: system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --rCard: 18px;
  --rBtn: 10px;
  --shSoft: 0 1px 2px rgb(31 27 22 / .06), 0 12px 32px rgb(31 27 22 / .08);
  --shLift: 0 2px 4px rgb(31 27 22 / .08), 0 18px 44px rgb(31 27 22 / .12);
  --pad: clamp(16px, 4vw, 40px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--fBody);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  line-height: 1.65;
  color: var(--cText);
  background-color: var(--cBg);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
img, figure { border-radius: var(--rCard); object-fit: cover; }

h1, h2, h3, h4 {
  font-family: var(--fHead);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 0.6em;
}

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; }
h3 { font-size: clamp(1.2rem, 1vw + 0.8rem, 1.5rem); }

p { margin: 0 0 1em; }
a { color: var(--cAccent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

.pageWrap {
  max-width: 1200px;
  margin: 0 auto;
  padding-inline: var(--pad);
}

.block { padding-block: clamp(64px, 9vw, 128px); position: relative; }
.block h2 { margin-bottom: 24px; }
.block:last-of-type { padding-bottom: clamp(64px, 9vw, 128px); }

.textFlow { max-width: 68ch; color: var(--cText); }

.skipTarget {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--cSurface);
  color: var(--cText);
  padding: 12px 20px;
  border-radius: var(--rBtn);
}
.skipTarget:focus { left: 16px; top: 16px; }

/* Background shapes */
.block::before,
.guaranteeBlock::after,
.workBlock::before {
  content: "";
  position: absolute;
  inset: auto;
  pointer-events: none;
  z-index: 0;
}
.topicsBlock::before {
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: rgb(166 75 34 / .09);
  top: -60px;
  right: -120px;
}
.workBlock::before {
  width: 380px;
  height: 190px;
  border-radius: 190px 190px 0 0;
  background: rgb(31 27 22 / .07);
  bottom: 0;
  left: -140px;
}
.priceBlock::before {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgb(166 75 34 / .08);
  bottom: -80px;
  left: -110px;
}
.faqSection::before {
  width: 260px;
  height: 130px;
  border-radius: 130px 130px 0 0;
  background: rgb(31 27 22 / .06);
  top: 20px;
  right: -90px;
}
.block > .pageWrap { position: relative; z-index: 1; }

/* Announcement */
.annBar {
  position: relative;
  z-index: 120;
  background: var(--cPlateBg);
  color: var(--cPlateText);
  padding: 12px 16px;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 16px;
}
.annBar p { margin: 0; flex: 1 1 auto; }
.annClose {
  flex-shrink: 0;
  margin-left: 0;
  background: transparent;
  color: var(--cPlateText);
  border: 1px solid rgb(247 243 236 / .5);
  border-radius: var(--rBtn);
  padding: 4px 12px;
  font-size: 0.82rem;
  cursor: pointer;
}
.annClose:hover { border-color: var(--cPlateText); }
.annClose:focus-visible { outline: 2px solid var(--cBg); outline-offset: 2px; }

/* Header */
.topBar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: transparent;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
.topBar.isScrolled {
  background: rgb(247 243 236 / .96);
  box-shadow: 0 1px 0 var(--cLine), 0 8px 24px rgb(31 27 22 / .06);
}
.topWrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px var(--pad);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  min-height: 68px;
}
.brandMark {
  font-family: var(--fHead);
  font-weight: 750;
  font-size: 1.25rem;
  color: var(--cText);
  text-decoration: none;
  text-align: center;
  white-space: nowrap;
}
.topSideMail { text-align: left; }
.topSideBtn { display: flex; justify-content: flex-end; }
.topMail {
  color: var(--cMuted);
  font-size: 0.95rem;
  text-decoration: none;
}
.topMail:hover { color: var(--cAccent); }

.menuBtn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 20px;
  background: var(--cSurface);
  color: var(--cText);
  border: 1px solid var(--cLine);
  border-radius: var(--rBtn);
  font: 600 0.95rem var(--fBody);
  cursor: pointer;
  transition: border-radius 0.25s ease, background-color 0.25s ease;
}
.menuBtn:hover { border-radius: 20px; background: var(--cBg); }
.menuBtn:focus-visible { outline: 3px solid var(--cAccent); outline-offset: 2px; }
.menuBtn:active { box-shadow: none; transform: none; }
.menuBtnBars {
  width: 20px;
  height: 2px;
  background: var(--cText);
  position: relative;
}
.menuBtnBars::before, .menuBtnBars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: var(--cText);
  transition: transform 0.25s ease, top 0.25s ease;
}
.menuBtnBars::before { top: -6px; }
.menuBtnBars::after { top: 6px; }
.fullNav.isOpen ~ * .menuBtnBars { display: none; }

/* Fullscreen nav */
.fullNav {
  position: fixed;
  inset: 0;
  z-index: 110;
  background: var(--cPlateBg);
  color: var(--cPlateText);
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}
.fullNav.isOpen { opacity: 1; visibility: visible; transform: translateY(0); }
.fullWrap {
  width: min(1080px, 100%);
  padding: 96px var(--pad) 48px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
.fullList { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.fullLink {
  display: block;
  font-family: var(--fHead);
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--cPlateText);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: var(--rBtn);
  transition: background-color 0.25s ease, padding-left 0.25s ease;
}
.fullLink:hover { background: rgb(247 243 236 / .12); padding-left: 20px; }
.fullLink:focus-visible { outline: 3px solid var(--cBg); outline-offset: 2px; }
.fullLink[aria-current="page"] { color: #E8A87E; }
.fullLead {
  font-family: var(--fHead);
  font-size: 1.3rem;
  margin-bottom: 12px;
}
.fullColContact ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.fullColContact a { color: #E8A87E; }

/* Buttons */
.btnMain, .btnGhost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 26px;
  border-radius: var(--rBtn);
  font: 600 1rem var(--fBody);
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: border-radius 0.25s ease, background-position 0.35s ease, box-shadow 0.2s ease;
}
.btnMain {
  background-image: linear-gradient(115deg, #B4561F 0%, var(--cAccent) 55%, #8C3D1B 100%);
  background-size: 180% 100%;
  background-position: 0% 0%;
  color: var(--cAccentText);
}
.btnMain:hover { border-radius: 22px; background-position: 100% 0%; }
.btnMain:focus-visible { outline: 3px solid var(--cAccent); outline-offset: 3px; }
.btnMain:active { box-shadow: none; border-radius: var(--rBtn); }
.btnGhost {
  background: var(--cSurface);
  color: var(--cText);
  border-color: var(--cLine);
}
.btnGhost:hover { border-radius: 22px; border-color: var(--cAccent); color: var(--cAccent); }
.btnGhost:focus-visible { outline: 3px solid var(--cAccent); outline-offset: 3px; }
.btnGhost:active { box-shadow: none; }

/* Hero */
.heroBlock {
  padding: clamp(48px, 7vw, 96px) 0 clamp(56px, 8vw, 104px);
  position: relative;
}
.heroBlock::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: rgb(166 75 34 / .08);
  top: -120px;
  left: -160px;
  pointer-events: none;
}
.heroBlock h1 {
  margin-bottom: 0.4em;
  max-width: 20ch;
  text-wrap: balance;
}
.bigAccent {
  font-family: var(--fHead);
  font-size: clamp(1.25rem, 1vw + 0.85rem, 1.375rem);
  line-height: 1.5;
  font-weight: 650;
  color: var(--cAccent);
  max-width: 50ch;
  margin-bottom: 28px;
}
.heroBlock .btnMain { margin-bottom: 40px; }
.heroShot {
  margin: 0;
  overflow: hidden;
  border-radius: 22px;
  box-shadow: var(--shSoft);
}
.heroShot img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

/* Form */
.leadSection {
  background: var(--cSurface);
  border-block: 1px solid var(--cLine);
  padding-block: clamp(56px, 7vw, 96px) !important;
}
.leadForm {
  max-width: 640px;
  display: grid;
  gap: 20px;
  background: var(--cBg);
  border: 1px solid var(--cLine);
  border-radius: var(--rCard);
  padding: clamp(20px, 3vw, 32px);
  margin-top: 24px;
}
.formRow { display: grid; gap: 6px; }
.fieldLabel { font-weight: 600; font-size: 0.95rem; }
.fieldInput {
  font: 400 1rem var(--fBody);
  color: var(--cText);
  background: var(--cSurface);
  border: 1px solid var(--cLine);
  border-radius: var(--rBtn);
  padding: 12px 14px;
  min-height: 48px;
  width: 100%;
}
.fieldArea { min-height: 120px; resize: vertical; }
.fieldInput::placeholder { color: var(--cMuted); opacity: 1; }
.fieldInput:focus-visible { outline: 3px solid var(--cAccent); outline-offset: 1px; }
.fieldInput[aria-invalid="true"] { border-color: var(--cAccent); }
.fieldAlert {
  color: var(--cAccent);
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0;
}
.fieldCheck { display: flex; gap: 10px; align-items: flex-start; font-size: 0.95rem; }
.fieldCheck input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--cAccent); }
.formHint { color: var(--cMuted); font-size: 0.9rem; margin: 0; }
.formSubmit { width: 100%; justify-self: stretch; }
.leadForm.isBusy .formSubmit { opacity: 0.6; pointer-events: none; }

/* Topic cards */
.topicsBlock > .pageWrap > div:first-of-type {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 32px;
}
.topicCard {
  background: var(--cSurface);
  border: 1px solid var(--cLine);
  border-radius: var(--rCard);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shSoft);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.topicCard:hover { transform: translateY(-6px); box-shadow: var(--shLift); }
.topicCard img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.cardBody { padding: clamp(20px, 2.5vw, 30px); flex-grow: 1; }
.cardBody h3 { margin-bottom: 0.4em; }
.cardBody .textFlow { margin: 0; }

/* Tabs */
.tabSet { margin-top: 48px; }
.tabList {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  border-bottom: 1px solid var(--cLine);
  padding-bottom: 12px;
}
.tabBtn {
  min-height: 44px;
  padding: 0 20px;
  background: var(--cSurface);
  color: var(--cMuted);
  border: 1px solid var(--cLine);
  border-radius: var(--rBtn);
  font: 600 0.95rem var(--fBody);
  cursor: pointer;
  transition: border-radius 0.25s ease, color 0.25s ease, background-color 0.25s ease;
}
.tabBtn:hover { border-radius: 20px; color: var(--cAccent); }
.tabBtn:focus-visible { outline: 3px solid var(--cAccent); outline-offset: 2px; }
.tabBtn[aria-selected="true"] {
  background: var(--cPlateBg);
  color: var(--cPlateText);
  border-color: var(--cPlateBg);
}
.tabPanel {
  background: var(--cSurface);
  border: 1px solid var(--cLine);
  border-radius: var(--rCard);
  padding: clamp(20px, 3vw, 32px);
  margin-top: 16px;
}
.tabPanel .textFlow { margin: 0; }

/* Work section */
.workGrid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}
.workShot { margin: 0; overflow: hidden; }
.workShot img { width: 100%; object-fit: cover; }
.archFrame img {
  aspect-ratio: 3 / 4;
  border-radius: 0 0 var(--rCard) var(--rCard);
  border-top-left-radius: 999px;
  border-top-right-radius: 999px;
}

/* Prices */
.priceBlock { background: var(--cSurface); border-block: 1px solid var(--cLine); padding-block: clamp(64px, 9vw, 128px) !important; }
.priceGrid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 32px;
  align-items: stretch;
}
.priceCard {
  background: var(--cBg);
  border: 1px solid var(--cLine);
  border-radius: var(--rCard);
  padding: clamp(24px, 3vw, 32px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.priceCard:hover { transform: translateY(-6px); box-shadow: var(--shLift); }
.priceCard h3 { margin: 0; }
.priceCard .textFlow { margin: 0; flex-grow: 1; }
.priceValue {
  font-family: var(--fHead);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--cAccent);
  margin: 0 0 8px;
}
.priceCard.isFeatured {
  background: var(--cPlateBg);
  color: var(--cPlateText);
  border-color: var(--cPlateBg);
}
.priceCard.isFeatured .priceValue { color: #E8A87E; }
.priceCard.isFeatured a { color: #E8A87E; }
.priceCard.isFeatured .btnMain { color: var(--cAccentText); }

/* FAQ */
.qaBlock { display: grid; gap: 12px; margin-top: 24px; max-width: 760px; }
.qaBlock details {
  background: var(--cSurface);
  border: 1px solid var(--cLine);
  border-radius: var(--rCard);
  padding: 18px 22px;
  transition: box-shadow 0.25s ease;
}
.qaBlock details[open] { box-shadow: var(--shSoft); }
.qaBlock summary {
  font-family: var(--fHead);
  font-size: 1.15rem;
  font-weight: 700;
  cursor: pointer;
  list-style-position: outside;
}
.qaBlock summary:focus-visible { outline: 3px solid var(--cAccent); outline-offset: 2px; border-radius: 6px; }
.qaBlock details .textFlow { margin: 12px 0 0; }

/* Guarantee plate */
.darkPlate {
  background: var(--cPlateBg);
  color: var(--cPlateText);
  border-radius: var(--rCard);
  padding: clamp(28px, 4vw, 52px);
}
.darkPlate h2 { color: var(--cPlateText); }
.darkPlate .textFlow { color: var(--cPlateText); opacity: 0.92; }
.darkPlate a { color: #E8A87E; }

/* Mobile form bar */
.formBar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgb(247 243 236 / .96);
  border-top: 1px solid var(--cLine);
  display: none;
}
.formBarLink { width: 100%; }
body.hasFormBar { padding-bottom: 84px; }

/* Footer */
.siteFoot {
  background: var(--cSurface);
  border-top: 1px solid var(--cLine);
  padding: clamp(40px, 6vw, 72px) 0 24px;
  margin-top: clamp(64px, 9vw, 128px);
}
.footGrid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
.footBrand {
  font-family: var(--fHead);
  font-size: 1.35rem;
  font-weight: 750;
  margin: 0 0 12px;
}
.footLead {
  font-family: var(--fHead);
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 10px;
}
.footOwner address { font-style: normal; color: var(--cMuted); }
.footOwner address p { margin: 0 0 6px; }
.footContact ul, .footLinks ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footContact span { color: var(--cMuted); }
.footLinks a { color: var(--cText); text-decoration: none; }
.footLinks a:hover { color: var(--cAccent); text-decoration: underline; }
.footBottom {
  border-top: 1px solid var(--cLine);
  margin-top: 32px;
  padding-top: 20px;
}
.footCopy { color: var(--cMuted); font-size: 0.9rem; margin: 0; }

/* Inner pages */
.pageHead { padding: clamp(40px, 6vw, 72px) 0 8px; }
.pageHead .textFlow { font-size: clamp(1.05rem, 1vw + 0.7rem, 1.3rem); }
.narrowWrap { max-width: 760px; }

.textFlow h2 { margin-top: 1.6em; }
.textFlow ul, .textFlow ol { padding-left: 1.4em; margin: 0 0 1em; }
.textFlow li { margin-bottom: 0.4em; }
.textFlow table {
  width: 100%;
  border-collapse: collapse;
  background: var(--cSurface);
  border-radius: var(--rCard);
  overflow: hidden;
  margin: 0 0 1.2em;
}
.textFlow th, .textFlow td {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--cLine);
}
.textFlow th { background: var(--cBg); font-weight: 700; }

.keyData {
  background: var(--cSurface);
  border: 1px solid var(--cLine);
  border-left: 4px solid var(--cAccent);
  border-radius: var(--rCard);
  padding: clamp(20px, 3vw, 32px);
  margin: 24px 0 40px;
}
.keyData h2 { margin-top: 0; }

.contactGrid { display: grid; grid-template-columns: 1fr; gap: 32px; margin-top: 24px; }
.contactCard {
  background: var(--cSurface);
  border: 1px solid var(--cLine);
  border-radius: var(--rCard);
  padding: clamp(20px, 3vw, 32px);
  box-shadow: var(--shSoft);
}
.contactCard ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.contactCard span { color: var(--cMuted); display: block; font-size: 0.9rem; }
.contactCard address { font-style: normal; margin-top: 14px; color: var(--cMuted); }

.msgPage { text-align: left; padding-block: clamp(48px, 7vw, 96px); }
.msgPage .pageWrap { max-width: 760px; }
.nextLinks { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

.galleryGrid { display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: 32px; }
.galleryGrid figure { margin: 0; overflow: hidden; box-shadow: var(--shSoft); }
.galleryGrid img { width: 100%; object-fit: cover; }

/* Reveal */
html.jsOn .fadeItem {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
html.jsOn .fadeItem.fadeShown {
  opacity: 1;
  transform: translateY(0);
}

/* Breakpoints */
@media (min-width: 480px) {
  .footGrid { grid-template-columns: 1fr 1fr; }
  .contactGrid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 640px) {
  .topicsBlock > .pageWrap > div:first-of-type, .priceGrid, .galleryGrid { grid-template-columns: repeat(2, 1fr); }
  .fullWrap { grid-template-columns: 1.4fr 1fr; }
  .galleryGrid figure.tallShot img { aspect-ratio: 3 / 4; }
}

@media (min-width: 768px) {
  .formBar { display: none; }
  body.hasFormBar { padding-bottom: 0; }
  .qaBlock { gap: 14px; }
}

@media (max-width: 767px) {
  .formBar { display: block; }
  .topMail { font-size: 0.85rem; }
  .topWrap { grid-template-columns: 1fr auto; }
  .topSideMail { display: none; }
  .topWrap { grid-template-columns: auto 1fr; }
  .brandMark { text-align: left; }
}

@media (min-width: 1024px) {
  .topicsBlock > .pageWrap > div:first-of-type { grid-template-columns: repeat(3, 1fr); }
  .topicsBlock .topicCard.isWide { grid-column: span 2; grid-row: span 1; }
  .priceGrid { grid-template-columns: repeat(3, 1fr); }
  .workGrid { grid-template-columns: 1.2fr 1fr; }
  .galleryGrid { grid-template-columns: repeat(3, 1fr); }
  .workShot img { max-height: 620px; }
}

@media (min-width: 1280px) {
  .heroBlock h1 { max-width: 24ch; }
  .heroShot { border-radius: 26px; }
}

@media (max-height: 600px) {
  .heroBlock { padding-top: 32px; }
  .heroBlock .btnMain { margin-bottom: 24px; }
  .fullWrap { padding-top: 72px; gap: 24px; }
}

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

/* Art fixes */
.leadSection .pageWrap { max-width: 960px; }

@media (max-width: 767px) {
  .heroBlock .btnMain { display: flex; width: 100%; margin: 16px 0 32px; }
}

@media (min-width: 768px) {
  .leadSection .pageWrap {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 48px;
    align-items: start;
  }
  .leadSection h2,
  .leadSection > .pageWrap > .textFlow { grid-column: 1; margin-top: 0; }
  .leadForm { grid-column: 2; grid-row: 1 / span 2; margin-top: 0; max-width: none; }
}

@media (min-width: 1024px) {
  .topicCard.isWide img { height: 420px; aspect-ratio: auto; }
  .topicCard:not(.isWide) img { height: 220px; aspect-ratio: auto; }
}

/* Overflow guard */
html { overflow-x: clip; }
.block { overflow: clip; }
.heroBlock { overflow: clip; }
.siteFoot { overflow: clip; }
