/* TZ / estimate modal */
.tz-est {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: end center;
  padding: 0;
}
.tz-est[hidden] { display: none !important; }
.tz-est__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 12, 18, 0.62);
}
.tz-est__dialog {
  position: relative;
  width: min(560px, 100%);
  max-height: min(92vh, 820px);
  overflow: auto;
  margin: 0;
  padding: 1.25rem 1.2rem 1.4rem;
  border-radius: 22px 22px 0 0;
  background: #0f1620;
  color: #eef3f8;
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.35);
}
.tz-est__close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
}
.tz-est__eyebrow {
  margin: 0 0 0.35rem;
  color: #7ef0d0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.tz-est__dialog h3 {
  margin: 0 2.2rem 0.45rem 0;
  font-size: 1.35rem;
  line-height: 1.2;
}
.tz-est__lead,
.tz-est__note {
  margin: 0 0 1rem;
  color: rgba(238, 243, 248, 0.72);
  font-size: 0.92rem;
}
.tz-est__label {
  display: block;
  margin: 0.7rem 0 0.35rem;
  font-size: 0.82rem;
  font-weight: 700;
}
.tz-est__area {
  width: 100%;
  box-sizing: border-box;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  padding: 0.85rem 0.9rem;
  font: inherit;
  resize: vertical;
}
.tz-est__q {
  margin: 0.9rem 0;
  padding: 0.85rem 0.95rem;
  border-radius: 14px;
  background: rgba(126, 240, 208, 0.08);
  border: 1px solid rgba(126, 240, 208, 0.22);
}
.tz-est__q ol { margin: 0.4rem 0 0; padding-left: 1.2rem; }
.tz-est__result {
  margin: 0.9rem 0;
  padding: 0.9rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
}
.tz-est__tz pre {
  white-space: pre-wrap;
  margin: 0.4rem 0 0;
  font: inherit;
  font-size: 0.9rem;
  color: rgba(238, 243, 248, 0.88);
}
.tz-est__lines {
  list-style: none;
  margin: 0.7rem 0;
  padding: 0;
}
.tz-est__lines li {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.9rem;
}
.tz-est__total { margin: 0.6rem 0 0; font-size: 1.05rem; }
.tz-est__err {
  color: #ffb4b4;
  margin: 0.5rem 0;
}
.tz-est__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.9rem;
}
.tz-est__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.78rem 1.1rem;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  font: inherit;
}
.tz-est__btn--main {
  background: #7ef0d0;
  color: #04140f;
}
.tz-est__btn--ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.22);
}
.tz-est__send {
  margin: 0.85rem 0 0.2rem;
  padding: 0.95rem;
  border-radius: 16px;
  background: rgba(126, 240, 208, 0.07);
  border: 1px solid rgba(126, 240, 208, 0.2);
}
.tz-est__send-title {
  display: block;
  margin: 0 0 0.35rem;
  font-size: 1rem;
}
.tz-est__send-lead,
.tz-est__send-hint {
  margin: 0 0 0.75rem;
  color: rgba(238, 243, 248, 0.72);
  font-size: 0.88rem;
}
.tz-est__send-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}
.tz-est__msg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.65rem 0.75rem;
  border-radius: 12px;
  font-weight: 800;
  font-size: 0.88rem;
  text-decoration: none;
  color: #04140f;
  background: #7ef0d0;
}
.tz-est__msg--vk { background: #4a76a8; color: #fff; }
.tz-est__msg--telegram { background: #2aabee; color: #fff; }
.tz-est__msg--whatsapp { background: #25d366; color: #04140f; }
.tz-est__msg--max { background: #6c5ce7; color: #fff; }
.tz-est__msg--email { background: #fc3f1d; color: #fff; }
.tz-est__copy { width: 100%; margin-top: 0.15rem; }
@media (min-width: 720px) {
  .tz-est { place-items: center; padding: 1rem; }
  .tz-est__dialog { border-radius: 22px; }
  .tz-est__send-row { grid-template-columns: repeat(3, 1fr); }
}
