/* Calculator-only legacy structure; no previous visual theme styles. */
/* Estimate calculator. */
.estimate-page-section,
.service-estimate-section {
  padding: clamp(76px, 10vw, 132px) 0;
  background: #f3f0eb;
  color: #101010;
}
.service-estimate-head {
  max-width: 850px;
  margin: 0 auto clamp(34px, 5vw, 60px);
  text-align: center;
}
.service-estimate-head h2 { margin: 10px 0 16px; font-size: clamp(2rem, 4.8vw, 4.8rem) !important; line-height: 1.04; letter-spacing: -.05em; }
.service-estimate-head p { color: rgba(16,16,16,.66); }
.estimate-calculator {
  width: min(100%, 1120px);
  margin: 0 auto;
  color: #101010;
}
.estimate-service-selector {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 14px;
  margin-bottom: 28px;
}
.estimate-service-choice { display: block; cursor: pointer; }
.estimate-service-choice input { position: absolute; opacity: 0; pointer-events: none; }
.estimate-service-choice > span {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 126px;
  padding: 24px 28px 24px 66px;
  border: 1px solid rgba(16,16,16,.25);
  background: rgba(255,255,255,.45);
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.estimate-service-choice > span::before {
  content: "";
  position: absolute;
  left: 26px;
  top: 50%;
  width: 21px;
  height: 21px;
  border: 2px solid #101010;
  transform: translateY(-50%);
}
.estimate-service-choice > span::after {
  content: "✓";
  position: absolute;
  left: 29px;
  top: 50%;
  color: #fff9ef;
  font-weight: 900;
  opacity: 0;
  transform: translateY(-54%);
}
.estimate-service-choice input:checked + span { background: #101010; border-color: #101010; color: #fff9ef; }
.estimate-service-choice input:checked + span::before { background: var(--accent-fire, #e17220); border-color: var(--accent-fire, #e17220); }
.estimate-service-choice input:checked + span::after { opacity: 1; }
.estimate-service-choice strong { font-size: clamp(1.35rem, 2.6vw, 2.35rem); line-height: 1.05; }
.estimate-service-choice small { margin-top: 9px; color: inherit; opacity: .66; font-size: .8rem; line-height: 1.6; }
.estimate-service-panel {
  margin-top: 20px;
  padding: clamp(24px, 4vw, 50px);
  border: 1px solid rgba(16,16,16,.22);
  background: #fff;
}
.estimate-service-panel[hidden] { display: none !important; }
.estimate-panel-head { display: flex; align-items: baseline; gap: 16px; padding-bottom: 22px; border-bottom: 2px solid #101010; }
.estimate-panel-head > span { color: var(--accent-fire, #e17220); font-family: var(--font-en); font-size: .7rem; font-weight: 800; letter-spacing: .16em; }
.estimate-panel-head h2 { margin: 0; font-size: clamp(1.8rem, 3.5vw, 3.3rem) !important; line-height: 1; }
.estimate-fieldset { min-width: 0; margin: 0; padding: clamp(28px, 4vw, 44px) 0; border: 0; border-bottom: 1px solid rgba(16,16,16,.16); }
.estimate-fieldset:last-child { border-bottom: 0; }
.estimate-fieldset legend { padding: 0; font-size: clamp(1.2rem, 2.2vw, 1.8rem); font-weight: 900; }
.estimate-field-note { margin: 8px 0 20px; color: rgba(16,16,16,.6); font-size: .84rem; }
.estimate-options { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
.estimate-option { display: block; min-width: 0; cursor: pointer; }
.estimate-option input { position: absolute; opacity: 0; pointer-events: none; }
.estimate-option-box {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 16px;
  align-items: center;
  min-height: 78px;
  padding: 16px 18px;
  border: 1px solid rgba(16,16,16,.2);
  background: #f7f5f1;
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.estimate-option input:checked + .estimate-option-box { border-color: #101010; background: #fff; box-shadow: inset 5px 0 0 var(--accent-fire, #e17220); }
.estimate-option-copy { min-width: 0; }
.estimate-option-copy strong { display: block; font-size: .95rem; line-height: 1.4; }
.estimate-option-copy small { display: block; margin-top: 5px; color: rgba(16,16,16,.58); font-size: .74rem; line-height: 1.45; }
.estimate-option-price { color: rgba(16,16,16,.66); font-size: .78rem; font-weight: 800; text-align: right; white-space: nowrap; }
.estimate-number-control { display: inline-grid; grid-template-columns: 46px 74px auto 46px; align-items: center; border: 1px solid rgba(16,16,16,.24); }
.estimate-number-control button { height: 46px; border: 0; background: #101010; color: #fff9ef; font-size: 1.2rem; cursor: pointer; }
.estimate-number-control input { width: 74px; height: 46px; border: 0; background: #fff; color: #101010; font-size: 1.05rem; font-weight: 900; text-align: center; }
.estimate-number-control > span { min-width: 52px; padding: 0 10px; font-size: .8rem; text-align: center; }
.estimate-calculate-wrap { display: flex; justify-content: center; margin-top: 34px; }
.estimate-calculate-button { min-width: min(100%, 300px); }
.estimate-result {
  scroll-margin-top: 110px;
  margin-top: clamp(36px, 5vw, 64px);
  padding: clamp(26px, 5vw, 56px);
  background: #101010;
  color: #fff9ef;
}
.estimate-result[hidden] { display: none !important; }
.estimate-result-head { padding-bottom: 20px; border-bottom: 1px solid rgba(255,249,239,.24); }
.estimate-result-head span { color: var(--accent-fire, #e17220); font-family: var(--font-en); font-size: .72rem; font-weight: 800; letter-spacing: .16em; }
.estimate-result-head h2 { margin: 7px 0 0; font-size: clamp(1.8rem, 4vw, 3.8rem) !important; line-height: 1; }
.estimate-result-group { padding: 26px 0; border-bottom: 1px solid rgba(255,249,239,.16); }
.estimate-result-group h3 { margin: 0 0 15px; color: var(--accent-fire, #e17220); font-size: 1.05rem; }
.estimate-result-row { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 18px; padding: 8px 0; }
.estimate-result-row span { color: rgba(255,249,239,.72); }
.estimate-result-row strong { font-size: .86rem; text-align: right; white-space: nowrap; }
.estimate-result-total { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: flex-end; gap: 9px 14px; padding: 30px 0 18px; }
.estimate-result-total > span { margin-right: auto; font-weight: 800; }
.estimate-result-total strong { font-family: var(--font-en); font-size: clamp(2rem, 5vw, 4rem); line-height: .9; }
.estimate-result-total small { color: rgba(255,249,239,.58); }
.estimate-result-note { color: rgba(255,249,239,.58); font-size: .82rem; line-height: 1.7; }
.estimate-result-text {
  display: block;
  width: 100%;
  min-height: 250px;
  margin-top: 24px;
  padding: 18px;
  border: 1px solid rgba(255,249,239,.22);
  background: rgba(255,255,255,.045);
  color: #fff9ef;
  font: inherit;
  font-size: .84rem;
  line-height: 1.75;
  resize: vertical;
}
.estimate-result-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 22px; }
.estimate-result-actions .btn-outline { border-color: rgba(255,249,239,.5); color: #fff9ef; }
.estimate-result-actions .btn-outline:hover { background: #fff9ef; color: #101010; }
.estimate-copy-status { min-height: 1.5em; margin: 14px 0 0; color: rgba(255,249,239,.7); font-size: .8rem; text-align: center; }
@media (max-width: 767px) {
  .estimate-service-selector,
  .estimate-options { grid-template-columns: 1fr; }
  .estimate-service-choice > span { min-height: 105px; padding: 20px 18px 20px 58px; }
  .estimate-service-choice > span::before { left: 20px; }
  .estimate-service-choice > span::after { left: 23px; }
  .estimate-service-panel { padding: 22px 18px; }
  .estimate-option-box { grid-template-columns: 1fr; gap: 7px; }
  .estimate-option-price { text-align: left; }
  .estimate-result-row { grid-template-columns: 1fr; gap: 3px; }
  .estimate-result-row strong { text-align: left; }
  .estimate-result-total { align-items: flex-start; flex-direction: column; }
  .estimate-result-total > span { margin: 0; }
  .estimate-result-actions { display: grid; grid-template-columns: 1fr; }
  .estimate-result-actions > * { width: 100%; }
}


.estimate-calculator .btn-main{background:#f43832;color:#2b2221;border:0;padding:18px 26px;display:inline-flex;align-items:center;justify-content:center;font-weight:900;cursor:pointer}
.estimate-calculator .btn-outline{background:transparent;border:1px solid currentColor;padding:16px 24px;font-weight:800;cursor:pointer}
