#raschet { scroll-margin-block-start: 1rem; }
#raschet .estimate-entry { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
#raschet .estimate-form:not([hidden]) {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(16rem, 1fr);
}
.estimate-form .estimate-site, .estimate-form .estimate-contact {
  display: grid; align-content: start; gap: 1.25rem; min-width: 0;
}
#raschet .estimate-site, #raschet .estimate-contact { padding: clamp(1.25rem, 2.6vw, 2.1rem); }
#raschet .estimate-contact { background: var(--soft); border-inline-start: 1px solid var(--line); }
.estimate-contact h3 { color: var(--night); }
.estimate-field { display: block; min-width: 0; font-weight: 600; }
.estimate-field small { margin-left: .35rem; font-size: .875rem; color: var(--muted); font-weight: 400; }
.estimate-field .estimate-hint { margin: .4rem 0 0; font-size: .875rem; line-height: 1.45; font-weight: 400; color: var(--text); }
.estimate-field input {
  display: block; width: 100%; min-height: 3rem; margin-top: .3rem; border: 1px solid #91a5b5;
  background: white; color: var(--ink); padding: .6rem .85rem; border-radius: 8px; font: inherit; font-weight: 400;
}
.estimate-choices { border: 0; padding: 0; margin: 0; min-width: 0; }
.estimate-choices legend { padding: 0; margin: 0 0 .45rem; font-weight: 600; }
.estimate-choices > div { display: flex; gap: .45rem; flex-wrap: wrap; }
.estimate-choices label { position: relative; display: inline-flex; align-items: center; cursor: pointer; }
.estimate-choices input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.estimate-choices span {
  display: inline-flex; align-items: center; gap: .5rem; padding: .45rem .7rem; min-height: 2.6rem;
  border: 1px solid var(--line); border-radius: 8px; color: var(--text); font-size: .9375rem;
}
.estimate-choices span::before {
  content: ""; width: .8rem; height: .8rem; box-sizing: border-box;
  border: 1px solid #7891a6; border-radius: 50%; flex: none; background: white;
}
.estimate-choices label:hover span { border-color: var(--deep); }
.estimate-choices input:checked + span { background: var(--soft); border-color: var(--deep); color: var(--night); }
.estimate-choices input:checked + span::before { border: .26rem solid var(--deep); }
.estimate-choices input:focus-visible + span { outline: 3px solid #de8e28; outline-offset: 2px; }
.estimate-form .btn { cursor: pointer; justify-self: start; }
.estimate-entry .estimate-note { color: var(--muted); font-size: .875rem; line-height: 1.5; margin: -.45rem 0 0; }
.estimate-review { max-width: 45rem; }
#raschet .estimate-review { padding: clamp(1.25rem, 2.6vw, 2.1rem); }
.estimate-review dl { margin: 1rem 0; }
.estimate-review dl > div { display: grid; grid-template-columns: minmax(6rem,.65fr) minmax(0,1.35fr); gap: .8rem; border-top: 1px solid var(--line); padding: .45rem 0; }
.estimate-review dt { color: var(--muted); }
.estimate-review dd { overflow-wrap: anywhere; }
.estimate-edit { border: 0; background: transparent; text-decoration: underline; cursor: pointer; padding: .7rem 0 0; }
.estimate-dialog {
  box-sizing: border-box; width: min(29rem, calc(100% - 2rem)); max-height: calc(100dvh - 2rem);
  border: 0; border-radius: 16px; padding: clamp(1.2rem, 3vw, 2rem); color: var(--ink); box-shadow: var(--shadow);
}
.estimate-dialog::backdrop { background: rgb(18 42 62 / 58%); }
body:has(.estimate-dialog[open]) { overflow: hidden; }
.estimate-dialog .estimate-close {
  position: absolute; inset: .45rem .45rem auto auto; width: 2.7rem; height: 2.7rem; border: 0;
  background: transparent; color: var(--muted); font-size: 1.65rem; line-height: 1; cursor: pointer;
}
.estimate-dialog h2 { font-size: clamp(1.5rem, 4vw, 1.85rem); padding-right: 1.5rem; }
.estimate-dialog .estimate-intro { color: var(--text); margin: .65rem 0 1.05rem; }
.estimate-dialog .estimate-contact { gap: .9rem; margin-top: .9rem; }
.estimate-dialog .estimate-full { display: inline-block; margin-top: 1rem; }
@media(max-width: 760px) {
  #raschet .estimate-form:not([hidden]) { grid-template-columns: minmax(0,1fr); }
  #raschet .estimate-contact { border-inline-start: 0; border-top: 1px solid var(--line); }
}
