[hidden] { display: none !important; }

.btn {
  display: inline-block;
  padding: 14px 28px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font: inherit;
  font-size: 15px;
  font-weight: 720;
  line-height: 1;
  text-align: center;
  cursor: pointer;
  transition: background .15s, border-color .15s, opacity .15s;
}
.btn:hover { border-color: var(--line-strong); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn--primary { background: var(--brand); color: var(--white); }
.btn--primary:hover { background: var(--brand-hover); border-color: var(--brand-hover); }

.est-page { padding-bottom: 88px; }
.est-header.page-head { margin-bottom: 0; }
.est-header.page-head h1 { margin-bottom: 10px; }
.est-header.page-head .lead { margin-bottom: 0; }

.est-layout { display: flex; flex-direction: column; gap: 16px; max-width: 640px; }

.est-form-card,
.est-result-card {
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.est-field { margin-bottom: 18px; position: relative; }
.est-field:last-of-type { margin-bottom: 0; }

.est-label {
  display: block;
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

.est-input,
.est-select {
  display: block;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-alt);
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  transition: border-color .15s, background .15s;
}

.est-input:focus,
.est-select:focus {
  outline: 3px solid rgba(117, 77, 54, .2);
  outline-offset: 2px;
  border-color: var(--blue);
  background: var(--white);
}

.est-input:disabled,
.est-select:disabled { opacity: .5; }

.est-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.est-suggestions {
  position: absolute;
  z-index: 5;
  left: 0; right: 0; top: calc(100% + 4px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 28px rgba(24, 27, 33, .16);
  max-height: 260px;
  overflow-y: auto;
}

.est-suggestion {
  display: block;
  width: 100%;
  padding: 10px 14px;
  border: none;
  background: none;
  text-align: left;
  font: inherit;
  font-size: 14px;
  color: var(--ink);
  cursor: pointer;
}
.est-suggestion:hover,
.est-suggestion:focus-visible { background: var(--surface-alt); }

.est-btn { width: 100%; margin-top: 22px; }

.est-spinner {
  display: flex; align-items: center; gap: 10px;
  margin-top: 14px; color: var(--muted); font-size: 14px;
}
.est-spinner__ring {
  width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid var(--line-strong); border-top-color: var(--blue);
  animation: est-spin .7s linear infinite;
}
@keyframes est-spin { to { transform: rotate(360deg); } }

.est-error {
  margin-top: 14px; padding: .7rem .9rem; border-radius: var(--radius);
  background: rgba(168, 58, 54, .1); color: var(--market); font-size: 14px;
}

.est-result-price { font-size: 2.1rem; font-weight: 800; color: var(--ink); margin: 0 0 6px; }
.est-result-meta { color: var(--muted); font-size: 14px; margin: 0 0 14px; }
.est-result-note { color: var(--muted); font-size: 13px; line-height: 1.6; margin: 0; }

@media (max-width: 640px) {
  .est-form-card, .est-result-card { padding: 22px; }
  .est-row { grid-template-columns: 1fr; }
}
